// Helper copied to the remote host to run commands and deploy configuration
-// Copyright (C) 2021 Simon Ruderich
+// Copyright (C) 2021-2023 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
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,
})