Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dax/jcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcl/runner.py')
-rw-r--r--src/jcl/runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jcl/runner.py b/src/jcl/runner.py
index 87ac73e..1000777 100644
--- a/src/jcl/runner.py
+++ b/src/jcl/runner.py
@@ -21,6 +21,8 @@
##
import logging
+import logging.handlers
+
import os
import sys
from ConfigParser import ConfigParser
@@ -175,7 +177,7 @@ class JCLRunner(object):
handler.setFormatter(LOG_FORMATTER)
logging.Logger.root.addHandler(handler)
if self.log_file is not None:
- handler = logging.FileHandler(self.log_file)
+ handler = logging.handlers.WatchedFileHandler(self.log_file)
handler.setFormatter(LOG_FORMATTER)
logging.Logger.root.addHandler(handler)