]> arthur.barton.de Git - netdata.git/blobdiff - python.d/python_modules/msg.py
Merge pull request #677 from paulfantom/master
[netdata.git] / python.d / python_modules / msg.py
index 3f168895510386dcaea2a2a5cc199576e5c6cfd4..5ff4e79ba92b7ead2d28bd13f79d5324f4760898 100644 (file)
@@ -12,10 +12,8 @@ def log_msg(msg_type, *args):
     Print message on stderr.
     :param msg_type: str
     """
-    msg = PROGRAM + " " + str(msg_type) + ":"
-    for i in args:
-        msg += " "
-        msg += str(i)
+    msg = "%s %s: %s" % (PROGRAM, str(msg_type), " ".join(args))
+
     sys.stderr.write(msg + "\n")
     sys.stderr.flush()