Merge "Change logger name to module itself instead of root"

This commit is contained in:
Jenkins 2013-04-02 14:45:12 +00:00 committed by Gerrit Code Review
commit ba5a0b0fe1

View File

@ -158,7 +158,8 @@ if __name__ == '__main__':
sys.exit('Termination signal received.')
signal.signal(signal.SIGTERM, sigterm)
logger = logging.getLogger()
logger = logging.getLogger(__name__)
logger.propagate = False
logger.setLevel({
'debug': logging.DEBUG,
'info': logging.INFO,