summary refs log tree commit diff stats
path: root/post.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 /post.go
parent686b6db06566fe151b627d238e47705109181b31 (diff)
downloadgetwtxt-b961a7041ef6dbfd46371d0c626fd7d26b59c23d.tar.gz
bugfix: errors logged as strings (prev. bytes)
Diffstat (limited to 'post.go')
-rw-r--r--post.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/post.go b/post.go
index ae1ef26..7846c7e 100644
--- a/post.go
+++ b/post.go
@@ -49,7 +49,7 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 
 	statuses, err := registry.ParseUserTwtxt(out, nick, urls)
 	if err != nil {
-		log.Printf("Error Parsing User Data: %v\n", err)
+		log.Printf("Error Parsing User Data: %v\n", err.Error())
 	}
 
 	if err := twtxtCache.AddUser(nick, urls, uip, statuses); err != nil {
@@ -60,6 +60,6 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 	log200(r)
 	_, err = w.Write([]byte(fmt.Sprintf("200 OK\n")))
 	if err != nil {
-		log.Printf("%v\n", err)
+		log.Printf("%v\n", err.Error())
 	}
 }