You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by Sasha Prikhodko <po...@gilhome.org> on 2005/09/05 11:06:51 UTC

Multiple logging strange feature with mod_python / Apache --- PLEASE reply or say that u don't like to speak with me, and i'll sign out

Dear developers,

i use logging module in mod_python environment
according to the following standard scheme:

logger = logging.getLogger(logger_name)

fh = logging.FileHandler(log_path)
logger.addHandler(fh)



and after some http server idle time i get 2 identical records in the 
log file,
3 records, ..., 5 records, ...
until i restart   httpd

Probably, this happens because Python VM is unloaded but
logger facilities remains living somewhere inside Apache, and next time
VM is started i _add another file handler with the same name_ .

Sincerely,
Alex