Message6311
Hi I am receiving an error when I am attempting to configure the new
logging with rotation. I have configured the settings as follows:
1) Added entry to config.ini: config = logs\logging.ini
2) Created the above file in my logs folder exactly as on the web page:
[loggers]
keys=roundup.http
[logger_roundup.http]
level=INFO
handlers=rotate_weblog
qualname=roundup.http
propagate=0
[handlers]
keys=rotate_weblog
[handler_rotate_weblog]
class=logging.handlers.RotatingFileHandler
args=('httpd.log','a', 512000, 2)
formatter=plain
[formatters]
keys=plain
[formatter_plain]
format=%(message)s
and am getting the following error on service startup. I am running on
windows.
The instance's SvcRun() method failed
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\win32\lib\win32serviceutil.py",
line 839, in SvcRun
self.SvcDoRun()
File
"C:\Python27\lib\site-packages\roundup\scripts\roundup_server.py", line
769, in SvcDoRun
self.server = config.get_server()
File
"C:\Python27\lib\site-packages\roundup\scripts\roundup_server.py", line
664, in get_server
for (name, home) in tracker_homes])
File "C:\Python27\lib\site-packages\roundup\instance.py", line 327, in
open
return Tracker(tracker_home, optimize=optimize)
File "C:\Python27\lib\site-packages\roundup\instance.py", line 57, in
__init__
self.config = configuration.CoreConfig(tracker_home)
File "C:\Python27\lib\site-packages\roundup\configuration.py", line
1571, in __init__
Config.__init__(self, home_dir, layout=SETTINGS, settings=settings)
File "C:\Python27\lib\site-packages\roundup\configuration.py", line
1178, in __init__
self.load(config_path)
File "C:\Python27\lib\site-packages\roundup\configuration.py", line
1635, in load
self.init_logging()
File "C:\Python27\lib\site-packages\roundup\configuration.py", line
1609, in init_logging
logging.config.fileConfig(_file)
File "C:\Python27\lib\logging\config.py", line 86, in fileConfig
_install_loggers(cp, handlers, disable_existing_loggers)
File "C:\Python27\lib\logging\config.py", line 190, in _install_loggers
llist.remove("root")
ValueError: list.remove(x): x not in list
%2: %3
If i comment out the line in the config.ini config = logs\logging.ini
then the service starts successfully. |
|
Date |
User |
Action |
Args |
2018-12-31 13:51:42 | matt109 | set | recipients:
+ matt109 |
2018-12-31 13:51:40 | matt109 | set | messageid: <1546264300.26.0.619166655035.issue2551017@roundup.psfhosted.org> |
2018-12-31 13:51:40 | matt109 | link | issue2551017 messages |
2018-12-31 13:51:40 | matt109 | create | |
|