From 98a6b5addaa4a83eb6b3bb752b67d0a766a3296e Mon Sep 17 00:00:00 2001 From: Christian Claus Date: Wed, 18 Apr 2018 15:46:06 +0200 Subject: [PATCH] Add error log handler --- cmd/swd/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/swd/main.go b/cmd/swd/main.go index 1a2a56c..834a9d7 100644 --- a/cmd/swd/main.go +++ b/cmd/swd/main.go @@ -19,6 +19,11 @@ func main() { Config: config, }, LockSystem: webdav.NewMemLS(), + Logger: func(request *http.Request, err error) { + if err != nil { + log.Error(err) + } + }, } a := &app.App{