diff options
Diffstat (limited to 'plugins/http')
-rw-r--r-- | plugins/http/plugin.go | 4 | ||||
-rw-r--r-- | plugins/http/tests/http_test.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go index 19765afc..8e8957bd 100644 --- a/plugins/http/plugin.go +++ b/plugins/http/plugin.go @@ -118,11 +118,11 @@ func (s *Plugin) Init(cfg config.Configurer, log log.Logger, server factory.Serv func (s *Plugin) logCallback(event interface{}) { switch ev := event.(type) { case ResponseEvent: - s.log.Info("response received", "elapsed", ev.Elapsed().String(), "remote address", ev.Request.RemoteAddr) + s.log.Debug("http handler response received", "elapsed", ev.Elapsed().String(), "remote address", ev.Request.RemoteAddr) case ErrorEvent: s.log.Error("error event received", "elapsed", ev.Elapsed().String(), "error", ev.Error) case roadrunner.WorkerEvent: - s.log.Info("worker event received", "event", ev.Event, "worker state", ev.Worker.State()) + s.log.Debug("worker event received", "event", ev.Event, "worker state", ev.Worker.State()) default: fmt.Println(event) } diff --git a/plugins/http/tests/http_test.go b/plugins/http/tests/http_test.go index ed98d17e..71859937 100644 --- a/plugins/http/tests/http_test.go +++ b/plugins/http/tests/http_test.go @@ -885,9 +885,9 @@ func TestHttpEchoErr(t *testing.T) { controller := gomock.NewController(t) mockLogger := mocks.NewMockLogger(controller) - mockLogger.EXPECT().Info("response received", "elapsed", gomock.Any(), "remote address", "127.0.0.1") + mockLogger.EXPECT().Debug("http handler response received", "elapsed", gomock.Any(), "remote address", "127.0.0.1") mockLogger.EXPECT().Debug("WORLD", "pid", gomock.Any()) - mockLogger.EXPECT().Info("worker event received", "event", roadrunner.EventWorkerLog, "worker state", gomock.Any()) + mockLogger.EXPECT().Debug("worker event received", "event", roadrunner.EventWorkerLog, "worker state", gomock.Any()) err = cont.RegisterAll( cfg, |