Skip to content

Commit

Permalink
Throw warning instead of error for inability to get JSON from a url
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Sep 12, 2018
1 parent 3dafe20 commit ab351f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/data/data.go
Expand Up @@ -111,7 +111,7 @@ func (ns *Namespace) GetJSON(urlParts ...string) (v interface{}, err error) {
var c []byte
c, err = ns.getResource(req)
if err != nil {
ns.deps.Log.ERROR.Printf("Failed to get JSON resource %s: %s", url, err)
ns.deps.Log.WARN.Printf("Failed to get JSON resource %s: %s", url, err)
return nil, nil
}

Expand Down

0 comments on commit ab351f9

Please sign in to comment.