From 16f346ac5f59c7ce7c1349c1436d0821c9e0ca4c Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Thu, 5 Feb 2015 21:15:19 -0500 Subject: combox/events.py: Under ComboxDIrMonitor, set logging's level to INFO. Reason why this was done: Every time a file is renamed/deleted/modified/created in the combox directory, a message about this is puked out to stdout. --- combox/events.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/combox/events.py b/combox/events.py index f69c8d9..c159e1e 100644 --- a/combox/events.py +++ b/combox/events.py @@ -40,6 +40,10 @@ class ComboxDirMonitor(LoggingEventHandler): """ super(ComboxDirMonitor, self).__init__() + logging.basicConfig(level=logging.INFO, + format='%(asctime)s - %(message)s', + datefmt='%Y-%m-%d %H:%M:%S') + self.config = config self.silo = ComboxSilo(self.config) -- cgit v1.2.3