From beff4432dc771d50357694fb69b4419f39849308 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 fa2d69ba..5a1e3a69 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -341,7 +341,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{