Permalink
Browse files

Fixed the millisecond output in logs

  • Loading branch information...
1 parent 9c358d1 commit e0e01b6b4d27f1a2800f7dc3c29cfad2b1dc738b @jbohman committed Jun 22, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 logsandra-httpd.py
  2. +1 −1 logsandra-monitord.py
View
@@ -51,7 +51,7 @@ def run(self):
os.makedirs(options.application_data_directory)
logfile = os.path.join(options.application_data_directory, 'logsandra.log')
- logging.basicConfig(filename=logfile, level=logging.DEBUG, format="%(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s")
+ logging.basicConfig(filename=logfile, level=logging.DEBUG, format="%(asctime)s %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s")
application = Application(options.pid_file, working_directory=options.working_directory, stdout=logfile, stderr=logfile)
application.settings = options
View
@@ -40,7 +40,7 @@ def run(self):
os.makedirs(options.application_data_directory)
logfile = os.path.join(options.application_data_directory, 'logsandra.log')
- logging.basicConfig(filename=logfile, level=logging.DEBUG, format="%(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s")
+ logging.basicConfig(filename=logfile, level=logging.DEBUG, format="%(asctime)s %(levelname)-5.5s [%(name)s] [%(threadName)s] %(message)s")
application = Application(options.pid_file, working_directory=options.working_directory, stdout=logfile, stderr=logfile)
application.settings = options

0 comments on commit e0e01b6

Please sign in to comment.