From 120f6b0cf20dfc977f33e650530d866e28e52a28 Mon Sep 17 00:00:00 2001 From: bogem Date: Tue, 22 Nov 2016 18:47:20 +0100 Subject: all: Use jww instead of fmt for printing This is an attempt to unify method for printing. --- helpers/url.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helpers') diff --git a/helpers/url.go b/helpers/url.go index 922d4aa80..c7697b092 100644 --- a/helpers/url.go +++ b/helpers/url.go @@ -20,6 +20,7 @@ import ( "strings" "github.com/PuerkitoBio/purell" + jww "github.com/spf13/jwalterweatherman" "github.com/spf13/viper" ) @@ -306,7 +307,7 @@ func URLPrep(ugly bool, in string) string { } url, err := purell.NormalizeURLString(x, purell.FlagAddTrailingSlash) if err != nil { - fmt.Printf("ERROR returned by NormalizeURLString. Returning in = %q\n", in) + jww.ERROR.Printf("Failed to normalize URL string. Returning in = %q\n", in) return in } return url -- cgit v1.2.3