missing import logging.handlers in start-loggerhead
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Invalid
|
Undecided
|
Unassigned |
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-
[...]
duplicate of #673999