From bc317775d232420cd211ad2f79235d8fc49e1bfe Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Tue, 29 Oct 2024 18:11:53 +0100 Subject: [PATCH] plugin: remove invalid chars from error message Signed-off-by: Nicola Murino --- internal/plugin/plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/plugin/plugin.go b/internal/plugin/plugin.go index b0f87848..62dceaed 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -340,7 +340,7 @@ func (m *Manager) NotifyLogEvent(event notifier.LogEventType, protocol, username if e == nil { message := "" if err != nil { - message = err.Error() + message = strings.Trim(err.Error(), "\x00") } e = ¬ifier.LogEvent{