]> arthur.barton.de Git - netdata.git/commitdiff
more timestamps
authorpaulfantom <paulfantom@gmail.com>
Sun, 14 Aug 2016 14:12:35 +0000 (16:12 +0200)
committerpaulfantom <paulfantom@gmail.com>
Sun, 14 Aug 2016 14:12:35 +0000 (16:12 +0200)
python.d/python_modules/msg.py

index ef6d933480572bd7455188b489c8eb652e1f377b..ecefba0a4fa185b38cb4e02b5a1c8b4f07651dc4 100644 (file)
@@ -33,7 +33,8 @@ def log_msg(msg_type, *args):
     if NEXT_CHECK <= now:
         NEXT_CHECK = now - (now % LOG_INTERVAL) + LOG_INTERVAL
         if LOG_COUNTER < 0:
-            msg = "Prevented %s log messages from displaying" % str(0 - LOG_COUNTER)
+            timestamp = strftime('%y-%m-%d %X')
+            msg = "%s: Prevented %s log messages from displaying" % (timestamp, str(0 - LOG_COUNTER))
             WRITE(msg + "\n")
             FLUSH()