diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-31 04:19:43 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-31 04:19:43 -0400 |
commit | b961a7041ef6dbfd46371d0c626fd7d26b59c23d (patch) | |
tree | 935214d679dd1857c430e6ee5058d2e5b9ddd9a9 /query.go | |
parent | 686b6db06566fe151b627d238e47705109181b31 (diff) | |
download | getwtxt-b961a7041ef6dbfd46371d0c626fd7d26b59c23d.tar.gz |
bugfix: errors logged as strings (prev. bytes)
Diffstat (limited to 'query.go')
-rw-r--r-- | query.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/query.go b/query.go index 6b9792b..554a53c 100644 --- a/query.go +++ b/query.go @@ -13,7 +13,7 @@ import ( func apiErrCheck(err error, r *http.Request) { if err != nil { uip := getIPFromCtx(r.Context()) - log.Printf("*** %v :: %v %v :: %v\n", uip, r.Method, r.URL, err) + log.Printf("*** %v :: %v %v :: %v\n", uip, r.Method, r.URL, err.Error()) } } |