plugin: remove invalid chars from error message
Some checks failed
Code scanning - action / CodeQL-Build (push) Has been cancelled
CI / Test and deploy (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
Docker / Build (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 10e4843a18
commit bc317775d2
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

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