From 46ea068900d7d2b905120e9f966d2a8bebc9323f Mon Sep 17 00:00:00 2001 From: Burathar Date: Fri, 24 Jul 2020 12:49:51 +0200 Subject: [PATCH] change copy-pasted labels --- app/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index ef7cdc8..674f8f4 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -56,7 +56,7 @@ def create_app(config_class=Config): mail_handler = SMTPHandler( mailhost=(app.config['MAIL_SERVER'], app.config['MAIL_PORT']), fromaddr='no-reply@' + app.config['MAIL_SERVER'], - toaddrs=app.config['ADMINS'], subject='Microblog Failure', + toaddrs=app.config['ADMINS'], subject='The-Hunt Failure', credentials=auth, secure=secure) mail_handler.setLevel(logging.ERROR) app.logger.addHandler(mail_handler) @@ -68,7 +68,7 @@ def create_app(config_class=Config): else: if not os.path.exists('logs'): os.mkdir('logs') - file_handler = RotatingFileHandler('logs/microblog.log', + file_handler = RotatingFileHandler('logs/the-hunt.log', maxBytes=10240, backupCount=10) file_handler.setFormatter(logging.Formatter( '%(asctime)s %(levelname)s: %(message)s ' @@ -77,7 +77,7 @@ def create_app(config_class=Config): app.logger.addHandler(file_handler) app.logger.setLevel(logging.INFO) - app.logger.info('Microblog startup') + app.logger.info('The-Hunt startup') return app