]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/main.go
ci/run: run golangci-lint
[safcm/safcm.git] / remote / main.go
index 61a6237ae9b94abd3b6c1ce90d8f124bacbb047a..903af0a4d3d9dffe612c0b8fb8ca09e406ac7515 100644 (file)
@@ -75,7 +75,10 @@ func mainLoop() error {
        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,
                        })