summaryrefslogtreecommitdiff
path: root/plugins/http/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-17 10:11:56 +0300
committerGitHub <[email protected]>2020-12-17 10:11:56 +0300
commita1dc59cabb6e63eab232922f4eb5a19dbd168f44 (patch)
treea35057cd5b8d22002bbd05812a3fb604ce03b705 /plugins/http/plugin.go
parentde3c2274d0009b63ead05ddf3d699012f1d11ada (diff)
parent1033c25b6bfc752d6059e446510f651e22cbf49b (diff)
Merge pull request #448 from spiral/plugin/reloader
[RR2] Plugin/reload
Diffstat (limited to 'plugins/http/plugin.go')
-rw-r--r--plugins/http/plugin.go5
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
}