Mercurial > gemma
comparison pkg/controllers/shapestretches.go @ 5490:5f47eeea988d logging
Use own logging package.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 20 Sep 2021 17:45:39 +0200 |
parents | 5e38667f740c |
children | 31973f6f5cca |
comparison
equal
deleted
inserted
replaced
5488:a726a92ea5c9 | 5490:5f47eeea988d |
---|---|
17 "archive/zip" | 17 "archive/zip" |
18 "database/sql" | 18 "database/sql" |
19 "fmt" | 19 "fmt" |
20 "io" | 20 "io" |
21 "io/ioutil" | 21 "io/ioutil" |
22 "log" | |
23 "net/http" | 22 "net/http" |
24 "os" | 23 "os" |
25 "path/filepath" | 24 "path/filepath" |
26 "strings" | 25 "strings" |
27 "time" | 26 "time" |
28 | 27 |
29 "github.com/gorilla/mux" | 28 "github.com/gorilla/mux" |
30 "github.com/jonas-p/go-shp" | 29 "github.com/jonas-p/go-shp" |
31 | 30 |
32 "gemma.intevation.de/gemma/pkg/config" | 31 "gemma.intevation.de/gemma/pkg/config" |
32 "gemma.intevation.de/gemma/pkg/log" | |
33 "gemma.intevation.de/gemma/pkg/middleware" | 33 "gemma.intevation.de/gemma/pkg/middleware" |
34 "gemma.intevation.de/gemma/pkg/wkb" | 34 "gemma.intevation.de/gemma/pkg/wkb" |
35 ) | 35 ) |
36 | 36 |
37 const ( | 37 const ( |
303 return err | 303 return err |
304 } | 304 } |
305 _, err = io.Copy(out, srcFile) | 305 _, err = io.Copy(out, srcFile) |
306 return err | 306 return err |
307 }(); err != nil { | 307 }(); err != nil { |
308 log.Printf("error: cannot write file: %v\n", err) | 308 log.Errorf("cannot write file: %v\n", err) |
309 return | 309 return |
310 } | 310 } |
311 } | 311 } |
312 } | 312 } |