@cryptotaxi247 / netdata-1 / commits / 3a87aa405

more timestamps

paulfantom committed Aug 14, 2016 at 16:12 UTC 3a87aa4053925ffe62e43230fe64f685105c000b
1 file changed +2 -1
python.d/python_modules/msg.py
+2 -1
@@ -33,7 +33,8 @@ def log_msg(msg_type, *args):
33 if NEXT_CHECK <= now:
34 NEXT_CHECK = now - (now % LOG_INTERVAL) + LOG_INTERVAL
35 if LOG_COUNTER < 0:
36 - msg = "Prevented %s log messages from displaying" % str(0 - LOG_COUNTER)
36 + timestamp = strftime('%y-%m-%d %X')
37 + msg = "%s: Prevented %s log messages from displaying" % (timestamp, str(0 - LOG_COUNTER))
38 WRITE(msg + "\n")
39 FLUSH()
40