summary refs log tree commit diff stats
path: root/query.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-31 04:19:43 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-31 04:19:43 -0400
commitb961a7041ef6dbfd46371d0c626fd7d26b59c23d (patch)
tree935214d679dd1857c430e6ee5058d2e5b9ddd9a9 /query.go
parent686b6db06566fe151b627d238e47705109181b31 (diff)
downloadgetwtxt-b961a7041ef6dbfd46371d0c626fd7d26b59c23d.tar.gz
bugfix: errors logged as strings (prev. bytes)
Diffstat (limited to 'query.go')
-rw-r--r--query.go2
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())
 	}
 }