]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm-remote/main.go
sync: simplify LogFunc to take the log message as string
[safcm/safcm.git] / cmd / safcm-remote / main.go
index ab0bfae917286283e59bcb16af1c2ffabe15432a..a29f20c171747ac6f3a72935c33a1ca6e162dd8a 100644 (file)
@@ -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,
                        })
                }
        }