# HG changeset patch # User Sascha L. Teichmann # Date 1549042142 -3600 # Node ID 8b7dee291488c2b5b21785113f083c4d28b2d58d # Parent 98f0c79561283cb0c23c54cb5efe4a36d906e3f4 WFS downloader: Harmonized logging. diff -r 98f0c7956128 -r 8b7dee291488 pkg/wfs/download.go --- 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 {