diff options
author | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-02-05 21:15:19 -0500 |
---|---|---|
committer | Siddharth Ravikumar <sravik@bgsu.edu> | 2015-02-05 21:15:19 -0500 |
commit | 16f346ac5f59c7ce7c1349c1436d0821c9e0ca4c (patch) | |
tree | 348074c3ec10caa8d22a12f52402a24f1a3cd205 | |
parent | 4a5d3d534c2dea3e757b6803dcde27238e892b59 (diff) |
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.
-rw-r--r-- | combox/events.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |