missing import logging.handlers in start-loggerhead
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Fix Released
|
Medium
|
Max Kanat-Alexander |
Bug Description
First run of loggerhead 1.18 ends with the following stacktrace::
# ./start-loggerhead -f -c loggerhead.conf
WARNING!!! This script has been deprecated by serve-branches, and will be removed in the next release. Please migrate to serve-branches and report any missing features.
Traceback (most recent call last):
File "./start-
main()
File "./start-
File "/tmp/loggerhea
debug_log = make_handler(
File "/tmp/loggerhea
h = logging.
AttributeError: 'module' object has no attribute 'handlers'
To fix it just add an import logging.handlers to start-loggerhead
=== modified file 'start-loggerhead'
--- start-loggerhead 2010-11-11 12:59:43 +0000
+++ start-loggerhead 2010-11-11 13:00:18 +0000
@@ -20,6 +20,7 @@
import logging
+import logging.handlers
from optparse import OptionParser
import os
import sys
That seems to fix the problem::
# ./start-loggerhead -f -c /etc/loggerhead
WARNING!!! This script has been deprecated by serve-branches, and will be removed in the next release. Please migrate to serve-branches and report any missing features.
DEB [20101111-
[...]
Related branches
- John A Meinel: Approve
-
Diff: 122 lines (+59/-1) (has conflicts)4 files modifiedNEWS (+14/-0)
loggerhead/__init__.py (+1/-1)
loggerhead/controllers/view_ui.py (+36/-0)
loggerhead/templatefunctions.py (+8/-0)
Changed in loggerhead: | |
status: | Fix Committed → Fix Released |
patch for file start-loggerhead attached