plugin: remove invalid chars from error message
Some checks failed
CI / Test and deploy (push) Has been cancelled
Docker / Build (push) Has been cancelled
Code scanning - action / CodeQL-Build (push) Has been cancelled
CI / Test build flags (push) Has been cancelled
CI / Test with PgSQL/MySQL/Cockroach (push) Has been cancelled
CI / Build Linux packages (push) Has been cancelled
CI / golangci-lint (push) Has been cancelled

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
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -341,7 +341,7 @@ func (m *Manager) NotifyLogEvent(event notifier.LogEventType, protocol, username
if e == nil { if e == nil {
message := "" message := ""
if err != nil { if err != nil {
message = err.Error() message = strings.Trim(err.Error(), "\x00")
} }
e = &notifier.LogEvent{ e = &notifier.LogEvent{