summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/client.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/client.go b/client/client.go
index c203e2b..e67546a 100644
--- a/client/client.go
+++ b/client/client.go
@@ -98,8 +98,11 @@ func (c *Client) log(state string, format string, a ...interface{}) {
c.EventLogger.Log(state, fmt.Sprintf(format, a...))
return
}
+ if format == "" {
+ log.Print(a...)
+ return
+ }
log.Printf(format, a...)
-
}
func (c *Client) error(format string, a ...interface{}) {
@@ -107,6 +110,10 @@ func (c *Client) error(format string, a ...interface{}) {
c.EventLogger.Error(fmt.Sprintf(format, a...))
return
}
+ if format == "" {
+ log.Print(a...)
+ return
+ }
log.Printf(format, a...)
}