diff options
author | Valery Piashchynski <[email protected]> | 2020-12-16 14:13:07 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-16 14:13:07 +0300 |
commit | aa55cf55d80d2dd21bf6063feb901a34051a1fcd (patch) | |
tree | 5af3fe84cb94d8bf4189f018883a83ce82937c1c /plugins/http | |
parent | 9e692dd9996f4d100ff3d9c5a358aa6894a748a3 (diff) |
Reduce RANGE allocations, parallel checks for removed and created files
Diffstat (limited to 'plugins/http')
-rw-r--r-- | plugins/http/plugin.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index a6399489..13299da1 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -296,7 +296,7 @@ func (s *Plugin) Reset() error { s.Lock() defer s.Unlock() const op = errors.Op("http reset") - s.log.Info("Resetting http plugin") + s.log.Info("HTTP plugin got restart request. Restarting...") s.pool.Destroy(context.Background()) // re-read the config @@ -317,6 +317,7 @@ func (s *Plugin) Reset() error { return errors.E(op, err) } + s.log.Info("HTTP workers Pool successfully restarted") s.handler, err = NewHandler( s.cfg.MaxRequestSize, *s.cfg.Uploads, @@ -329,7 +330,9 @@ func (s *Plugin) Reset() error { // restore original listeners s.pool.AddListener(s.listener) + s.log.Info("HTTP listeners successfully re-added") + s.log.Info("HTTP plugin successfully restarted") return nil } |