Add error log handler
This commit is contained in:
parent
785a6182bf
commit
98a6b5adda
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ func main() {
|
||||||
Config: config,
|
Config: config,
|
||||||
},
|
},
|
||||||
LockSystem: webdav.NewMemLS(),
|
LockSystem: webdav.NewMemLS(),
|
||||||
|
Logger: func(request *http.Request, err error) {
|
||||||
|
if err != nil {
|
||||||
|
log.Error(err)
|
||||||
|
}
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
a := &app.App{
|
a := &app.App{
|
||||||
|
|
Loading…
Reference in a new issue