Merge "Change logger name to module itself instead of root"
This commit is contained in:
commit
ba5a0b0fe1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user