Revision history [back]

click to hide/show revision 1
initial version

Find the root cause, Because in my heat plugin code, there is another logging system with my personal logging.conf, part1: we invoke: logging.config.fileConfig(logfile_path), the function has default parameter disable_existing_loggers whose default value is 1, that will disable other loggers. part2: In the process of logging.conf, that will revalue the handler of the logger root.
So I can not get the log in /var/log/heat/heat-engine.log

The solution: 1. logging.config.fileConfig(logfile_path, disable_existing_loggers=0)

  1. comment the code replacing the handler of logger root with the handler in logging.conf

Thanks you all the same.

Find the root cause, Because in my heat plugin code, there is another logging system with my personal logging.conf, part1: we invoke: logging.config.fileConfig(logfile_path), the function has default parameter disable_existing_loggers whose default value is 1, that will disable other loggers. part2: In the process of logging.conf, that will revalue the handler of the logger root.
So I can not get the log in /var/log/heat/heat-engine.log

The solution: 1. logging.config.fileConfig(logfile_path, disable_existing_loggers=0)solution:

  1. logging.config.fileConfig(logfile_path, disable_existing_loggers=0)

  2. comment the code replacing the handler of logger root with the handler in logging.conf

Thanks you all the same.

Find the root cause, Because in my heat plugin code, there is another logging system with my personal logging.conf,

part1: we invoke: logging.config.fileConfig(logfile_path), the function has default parameter disable_existing_loggers whose default value is 1, that will disable other loggers. loggers.

part2: In the process of logging.conf, that will revalue the handler of the logger root.
So I can not get the log in /var/log/heat/heat-engine.log

The solution:

  1. logging.config.fileConfig(logfile_path, disable_existing_loggers=0)

  2. comment the code replacing the handler of logger root with the handler in logging.conf

Thanks you all the same.