summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-20 15:05:41 +0300
committerValery Piashchynski <[email protected]>2021-04-20 15:05:41 +0300
commitc8edd94d7a8c13fe6a2e2580ad0442c16ce97e54 (patch)
tree73ab906177fd2cc09afd7323e91ab887b15ac066 /plugins
parentc24f86e6eb1be40d71b8e15099dbc88cc7fad97f (diff)
- Fix bug that after Reset, http handler was witout log listener
Diffstat (limited to 'plugins')
-rw-r--r--plugins/http/plugin.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go
index 403f8fd1..01bd243f 100644
--- a/plugins/http/plugin.go
+++ b/plugins/http/plugin.go
@@ -393,9 +393,8 @@ func (s *Plugin) Reset() error {
return errors.E(op, err)
}
- s.log.Info("HTTP listeners successfully re-added")
-
s.log.Info("HTTP workers Pool successfully restarted")
+
s.handler, err = NewHandler(
s.cfg.MaxRequestSize,
*s.cfg.Uploads,
@@ -406,6 +405,9 @@ func (s *Plugin) Reset() error {
return errors.E(op, err)
}
+ s.log.Info("HTTP handler listeners successfully re-added")
+ s.handler.AddListener(s.logCallback)
+
s.log.Info("HTTP plugin successfully restarted")
return nil
}