Mercurial > gemma
diff pkg/wfs/global.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 | 16259efa828f |
children | 09346efa7f69 |
line wrap: on
line diff
--- a/pkg/wfs/global.go Sat Aug 21 15:01:52 2021 +0200 +++ b/pkg/wfs/global.go Mon Sep 20 17:45:39 2021 +0200 @@ -18,12 +18,12 @@ "fmt" "io" "io/ioutil" - "log" "os" "os/exec" "path/filepath" "gemma.intevation.de/gemma/pkg/config" + "gemma.intevation.de/gemma/pkg/log" ) var ( @@ -59,10 +59,10 @@ func setup() func(*Capabilities, string, string) (Downloader, error) { path, err := exec.LookPath("ogr2ogr") if err != nil { - log.Println("info: ogr2ogr not installed. Using direct GeoJSON WFS download.") + log.Infoln("ogr2ogr not installed. Using direct GeoJSON WFS download.") return getFeaturesGeoJSON } - log.Printf("info: ogr2ogr found at %s. Using GML WFS download.\n", path) + log.Infof("ogr2ogr found at %s. Using GML WFS download.\n", path) return getFeaturesGML }