plugin: remove invalid chars from error message

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-10-29 18:11:53 +01:00
parent 9ae0bc4ec4
commit beff4432dc

View File

@@ -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 = &notifier.LogEvent{