var logLevel safcm.LogLevel
logFunc := func(level safcm.LogLevel, msg string) {
if logLevel >= level {
- conn.Send(safcm.MsgLog{
+ // Handling errors here is complex and quite verbose.
+ // If it happens the connection is gone anyway so skip
+ // the error handling.
+ conn.Send(safcm.MsgLog{ //nolint:errcheck
Level: level,
Text: msg,
})