From 4fa94bb7f73a705293c2afd40fc1151a3aaa04e2 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Wed, 5 May 2021 16:39:22 +0300 Subject: - Initial broadcast commit Signed-off-by: Valery Piashchynski --- plugins/logger/std_log_adapter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/logger') diff --git a/plugins/logger/std_log_adapter.go b/plugins/logger/std_log_adapter.go index f00a0fd3..479aa565 100644 --- a/plugins/logger/std_log_adapter.go +++ b/plugins/logger/std_log_adapter.go @@ -1,7 +1,7 @@ package logger import ( - "unsafe" + "github.com/spiral/roadrunner/v2/utils" ) // StdLogAdapter can be passed to the http.Server or any place which required standard logger to redirect output @@ -12,7 +12,7 @@ type StdLogAdapter struct { // Write io.Writer interface implementation func (s *StdLogAdapter) Write(p []byte) (n int, err error) { - s.log.Error("server internal error", "message", toString(p)) + s.log.Error("server internal error", "message", utils.AsString(p)) return len(p), nil } -- cgit v1.2.3