summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-03-13 21:37:43 +0300
committerValery Piashchynski <[email protected]>2021-03-13 21:37:43 +0300
commit903e2125991fe2c2db48fc5f687397219edc2abc (patch)
treeed99650d143974fdc16d6007acb295748ff1395a
parent594d801d14bb394b20eec14690d1b616e2c4d56d (diff)
Fix typo Info -> Error level
Signed-off-by: Valery Piashchynski <[email protected]>
-rw-r--r--plugins/logger/std_log_adapter.go2
-rw-r--r--tests/plugins/http/http_plugin_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/logger/std_log_adapter.go b/plugins/logger/std_log_adapter.go
index d9a29451..484cc23e 100644
--- a/plugins/logger/std_log_adapter.go
+++ b/plugins/logger/std_log_adapter.go
@@ -12,7 +12,7 @@ type StdLogAdapter struct {
// Write io.Writer interface implementation
func (s *StdLogAdapter) Write(p []byte) (n int, err error) {
- s.log.Info("server internal stderr", "message", toString(p))
+ s.log.Error("server internal error", "message", toString(p))
return len(p), nil
}
diff --git a/tests/plugins/http/http_plugin_test.go b/tests/plugins/http/http_plugin_test.go
index 752bd84e..d136b437 100644
--- a/tests/plugins/http/http_plugin_test.go
+++ b/tests/plugins/http/http_plugin_test.go
@@ -708,7 +708,7 @@ func TestH2CUpgrade(t *testing.T) {
controller := gomock.NewController(t)
mockLogger := mocks.NewMockLogger(controller)
- mockLogger.EXPECT().Info("server internal stderr", "message", gomock.Any()).MinTimes(1)
+ mockLogger.EXPECT().Error("server internal error", "message", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Debug("worker destructed", "pid", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Debug("worker constructed", "pid", gomock.Any()).MinTimes(1)
mockLogger.EXPECT().Debug("worker event received", "event", events.EventWorkerLog, "worker state", gomock.Any()).MinTimes(1)