X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm-remote%2Fmain.go;h=a29f20c171747ac6f3a72935c33a1ca6e162dd8a;hb=fd97e8019e2ab166d9475ed59782c86247d8430b;hp=e9ce1cd0ccac627e6573bc5b07c040166cb4be65;hpb=ad55f8167bc4e36b71e9d71d8c01443861a989c5;p=safcm%2Fsafcm.git diff --git a/cmd/safcm-remote/main.go b/cmd/safcm-remote/main.go index e9ce1cd..a29f20c 100644 --- a/cmd/safcm-remote/main.go +++ b/cmd/safcm-remote/main.go @@ -1,4 +1,4 @@ -// Helper copied to the remote hosts to run commands and deploy configuration +// Helper copied to the remote host to run commands and deploy configuration // Copyright (C) 2021 Simon Ruderich // @@ -73,11 +73,11 @@ func mainLoop() error { conn := safcm.NewGobConn(os.Stdin, os.Stdout) var logLevel safcm.LogLevel - logFunc := func(level safcm.LogLevel, format string, a ...interface{}) { + logFunc := func(level safcm.LogLevel, msg string) { if logLevel >= level { conn.Send(safcm.MsgLog{ Level: level, - Text: fmt.Sprintf(format, a...), + Text: msg, }) } }