diff options
author | Valery Piashchynski <[email protected]> | 2021-02-24 14:16:59 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-24 14:16:59 +0300 |
commit | b3cb0cd2428f1bfdd959ea8f3461e2992b6acdb2 (patch) | |
tree | 0d226eb8ad9730ede1f7cd80b5f7b44d1fb23b0a /plugins/static | |
parent | 3c5a85bf8a0d1c8b8f8f71c215f75b338c4e7510 (diff) | |
parent | caea9cb452fda97a9496bc33190c95fbc27e54c3 (diff) |
Merge pull request #551 from spiral/rc.4-releasev2.0.0-RC.4
âš¡ release(RC.4): Release RC.4
Diffstat (limited to 'plugins/static')
-rw-r--r-- | plugins/static/plugin.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/static/plugin.go b/plugins/static/plugin.go index 1687cf11..5f108701 100644 --- a/plugins/static/plugin.go +++ b/plugins/static/plugin.go @@ -47,7 +47,7 @@ func (s *Plugin) Init(cfg config.Configurer, log logger.Logger) error { err = s.cfg.Valid() if err != nil { - return errors.E(op, errors.Disabled, err) + return errors.E(op, err) } return nil @@ -88,7 +88,6 @@ func (s *Plugin) handleStatic(w http.ResponseWriter, r *http.Request) bool { f, err := s.root.Open(fPath) if err != nil { - s.log.Error("file open error", "error", err) if s.cfg.AlwaysServe(fPath) { w.WriteHeader(404) return true |