X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=remote%2Fmain.go;h=ad4aa9be27763a167364c46de8be57f26ede12b8;hb=4206e0dbca82f5df7d8e534f78cb737979880916;hp=61a6237ae9b94abd3b6c1ce90d8f124bacbb047a;hpb=9269fa3c94e700afc0be823f58ea473a2db8f3dc;p=safcm%2Fsafcm.git diff --git a/remote/main.go b/remote/main.go index 61a6237..ad4aa9b 100644 --- a/remote/main.go +++ b/remote/main.go @@ -1,6 +1,6 @@ // Helper copied to the remote host to run commands and deploy configuration -// Copyright (C) 2021 Simon Ruderich +// Copyright (C) 2021-2022 Simon Ruderich // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -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, })