Fix logging.

This commit is contained in:
Stephan Porada
2019-09-12 12:01:46 +02:00
parent 2368cfb1f9
commit 682ca30991
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ class DevelopmentConfig(Config):
format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
filemode='w')
logger = logging.getLogger(__name__)
logger.info('Logging has started with level WARNING.')
logger.warning('Logging has started with level WARNING.')
class TestingConfig(Config):
@ -77,7 +77,7 @@ class ProductionConfig(Config):
format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
filemode='w')
logger = logging.getLogger(__name__)
logger.info('Logging has started with level ERROR.')
logger.error('Logging has started with level ERROR.')
config = {