X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=remote%2Fmain.go;fp=remote%2Fmain.go;h=903af0a4d3d9dffe612c0b8fb8ca09e406ac7515;hp=61a6237ae9b94abd3b6c1ce90d8f124bacbb047a;hb=ba1a93368ed95d7160062f60fb8b579bc178d3aa;hpb=8620dac1f9ee7f73058e3e97b488ec0c710a89df diff --git a/remote/main.go b/remote/main.go index 61a6237..903af0a 100644 --- a/remote/main.go +++ b/remote/main.go @@ -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, })