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,
})
}
}