mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-25 04:31:53 +08:00
feat!: further log customizations
This commit is contained in:
@@ -61,6 +61,10 @@ func NewHandler(c *Config) (http.Handler, error) {
|
||||
}).Handler(h), nil
|
||||
}
|
||||
|
||||
if len(c.Users) == 0 {
|
||||
zap.L().Warn("unprotected config: no users have been set, so no authentication will be used")
|
||||
}
|
||||
|
||||
return h, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user