diff options
author | bogem <albertnigma@gmail.com> | 2016-11-22 18:47:20 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-22 22:06:48 +0100 |
commit | 120f6b0cf20dfc977f33e650530d866e28e52a28 (patch) | |
tree | 232ebeb1e3b3b7e356c352d6febb268e69d1059d /helpers/url.go | |
parent | e1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8 (diff) |
all: Use jww instead of fmt for printing
This is an attempt to unify method for printing.
Diffstat (limited to 'helpers/url.go')
-rw-r--r-- | helpers/url.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |