Skip to content

Instantly share code, notes, and snippets.

View the-c0d3r's full-sized avatar

the-c0d3r

View GitHub Profile
@the-c0d3r
the-c0d3r / supervisor_timestamp.patch
Created October 13, 2018 11:47
A quick patch for supervisor to add in timestamp for the standard output and standard error log file of the processes.
diff --git a/supervisor/dispatchers.py b/supervisor/dispatchers.py
index 5a96199..dc8087a 100644
--- a/supervisor/dispatchers.py
+++ b/supervisor/dispatchers.py
@@ -134,7 +134,7 @@ class POutputDispatcher(PDispatcher):
maxbytes = getattr(config, '%s_logfile_maxbytes' % channel)
backups = getattr(config, '%s_logfile_backups' % channel)
- fmt = '%(message)s'
+ fmt = '%(asctime)s: %(message)s'