aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo@ubuntu.com>2013-01-31 12:27:04 +0100
committerMilo Casagrande <milo@ubuntu.com>2013-01-31 12:27:04 +0100
commit03aeb0ac436d0ec1e9f6bc8e138ed5669279e31e (patch)
tree6a5b4bc8a34d49484c9f7094b59a5480c9220dcb
parenta5839bee42470715388a7fc26e8ae5d5ce19d9a8 (diff)
downloadrhodecode-config-03aeb0ac436d0ec1e9f6bc8e138ed5669279e31e.tar.gz
Fixed handler import.
-rw-r--r--scripts/update-repos5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/update-repos b/scripts/update-repos
index 9eaddcb..9831350 100644
--- a/scripts/update-repos
+++ b/scripts/update-repos
@@ -7,6 +7,7 @@ import re
import subprocess
import logging
+from logging.handlers import TimedRotatingFileHandler
from tempfile import gettempdir
@@ -53,8 +54,8 @@ def setup_logging(debug, log_dir):
th_formatter = "%(asctime)s %(levelname)-8s %(message)s"
log_file = os.path.join(log_dir, LOG_FILE_NAME)
- timed_handler = logging.handlers.TimedRotatingFileHandler(log_file,
- when='midnight')
+ timed_handler = TimedRotatingFileHandler(log_file,
+ when='midnight')
timed_handler.setFormatter(logging.Formatter(th_formatter))
if debug: