changeset 2096:8b7dee291488

WFS downloader: Harmonized logging.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 01 Feb 2019 18:29:02 +0100
parents 98f0c7956128
children 8a986d80e1c6
files pkg/wfs/download.go
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/wfs/download.go	Fri Feb 01 18:04:28 2019 +0100
+++ b/pkg/wfs/download.go	Fri Feb 01 18:29:02 2019 +0100
@@ -149,7 +149,7 @@
 	var numFeatures int
 
 	if supportsPaging {
-		log.Printf("Paging supported with %d feature per page.\n",
+		log.Printf("info: Paging supported with %d feature per page.\n",
 			featuresPerPage)
 
 		if !op.SupportsHits() {
@@ -160,7 +160,7 @@
 				log.Printf("error: %v\n", err)
 				supportsPaging = false
 			} else {
-				log.Printf("Number of features: %d\n", numFeatures)
+				log.Printf("info: Number of features: %d\n", numFeatures)
 			}
 		}
 	}
@@ -214,10 +214,10 @@
 			return q.String()
 		}
 		if numFeatures <= featuresPerPage {
-			log.Println("All features can be fetched in one page")
+			log.Println("info: All features can be fetched in one page.")
 			downloadURLs = []string{pagedURL(0, numFeatures)}
 		} else {
-			log.Println("Features need to be downloaded in pages.")
+			log.Println("info: Features need to be downloaded in pages.")
 			for pos := 0; pos < numFeatures; {
 				var count int
 				if rest := numFeatures - pos; rest >= numFeatures {