summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Pepple <ken.pepple@gmail.com>2011-02-18 14:54:23 -0800
committerKen Pepple <ken.pepple@gmail.com>2011-02-18 14:54:23 -0800
commit1cc8e2e1eb262f4bc54c22b197a053e4fee4a1e6 (patch)
treed4c2804e5f54d80c7b162346716ae3ee724bb6ff
parent2da6494d20624177c0077d0709e1fdb0e5f8f03c (diff)
parent8de8d1d045ca9fe12596e53d2244f4f8703cc209 (diff)
merged trunk
-rw-r--r--nova/log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/log.py b/nova/log.py
index 87a6dd51b..6b201ffcc 100644
--- a/nova/log.py
+++ b/nova/log.py
@@ -94,7 +94,7 @@ critical = logging.critical
log = logging.log
# handlers
StreamHandler = logging.StreamHandler
-RotatingFileHandler = logging.handlers.RotatingFileHandler
+WatchedFileHandler = logging.handlers.WatchedFileHandler
# logging.SysLogHandler is nicer than logging.logging.handler.SysLogHandler.
SysLogHandler = logging.handlers.SysLogHandler
@@ -139,7 +139,7 @@ def basicConfig():
logging.root.addHandler(syslog)
logpath = get_log_file_path()
if logpath:
- logfile = RotatingFileHandler(logpath)
+ logfile = WatchedFileHandler(logpath)
logfile.setFormatter(_formatter)
logging.root.addHandler(logfile)