diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-06 18:16:29 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-08 02:29:23 -0400 |
commit | 6c1b09bbeb1a7268a0d590e0a20ab2d34b395c8f (patch) | |
tree | 2c843adf344830510ff517f344b3af451955f98c /svc/handlers.go | |
parent | 5fa9ec1b63acc6ac9dc0a8b5d2f8f044c27ea45e (diff) | |
download | getwtxt-6c1b09bbeb1a7268a0d590e0a20ab2d34b395c8f.tar.gz |
cleaned up error handling
Diffstat (limited to 'svc/handlers.go')
-rw-r--r-- | svc/handlers.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svc/handlers.go b/svc/handlers.go index 3dcb84f..13555d5 100644 --- a/svc/handlers.go +++ b/svc/handlers.go @@ -3,7 +3,6 @@ package svc // import "github.com/getwtxt/getwtxt/svc" import ( "crypto/sha256" "fmt" - "log" "net/http" "strconv" "time" @@ -14,9 +13,7 @@ import ( func getEtag(modtime time.Time) string { shabytes, err := modtime.MarshalText() - if err != nil { - log.Printf("%v\n", err.Error()) - } + errLog("", err) return fmt.Sprintf("%x", sha256.Sum256(shabytes)) } |