florath / rmtoo

Free and Open Source Requirements Management TooL
http://rmtoo.florath.net
Other
207 stars 59 forks source link

tracer logging settings ignored #17

Open ibtaylor opened 6 years ago

ibtaylor commented 6 years ago

does not seem to respect filename set in config global.logging.tracer.filename

maybe because configure_logging does not call init_tracer https://github.com/florath/rmtoo/blob/c015be2573b9df10897b6c7b5b3f4fdeba43e301/rmtoo/lib/logging/__init__.py#L146 and so it uses the default settings in LOGGING_CONFIG when the tracer is created at the bottom of https://github.com/florath/rmtoo/blob/c015be2573b9df10897b6c7b5b3f4fdeba43e301/rmtoo/lib/logging/__init__.py#L154

ibtaylor commented 6 years ago

adding

__setup_trace_handler(tracer)

before https://github.com/florath/rmtoo/blob/c015be2573b9df10897b6c7b5b3f4fdeba43e301/rmtoo/lib/logging/__init__.py#L146 seems to do what i want aside from two initial logs in /tmp/rmtoo.log

2018-05-15 14:02:58,411;rmtoo-trace;DEBUG;__init__;init_tracer;121;rmtoo tracer system enabled.
2018-05-15 14:02:58,411;rmtoo-trace;DEBUG;__init__;__init_logger_object;95;rmtoo init logger.