typo
This commit is contained in:
parent
48c8630f7e
commit
4cdcf5effa
1 changed files with 1 additions and 8 deletions
9
main.py
9
main.py
|
@ -18,16 +18,9 @@ Session(app)
|
||||||
socketio = SocketIO(app)
|
socketio = SocketIO(app)
|
||||||
|
|
||||||
#logging_config
|
#logging_config
|
||||||
logging.basicConfig(filename='matekasse.log', encoding='utf-8', level=logging.INFO)
|
logging.basicConfig(filename='matekasse.log',filemode='w', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' ,encoding='utf-8', level=logging.INFO)
|
||||||
db_log = logging.getLogger('db')
|
db_log = logging.getLogger('db')
|
||||||
db_consol_handler = logging.StreamHandler()
|
|
||||||
db_consol_handler.setLevel(logging.INFO)
|
|
||||||
db_consol_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
|
|
||||||
db_log.addHandler(db_consol_handler)
|
|
||||||
website_log = logging.getLogger('website')
|
website_log = logging.getLogger('website')
|
||||||
website_consol_handler = logging.StreamHandler()
|
|
||||||
website_consol_handler.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s'))
|
|
||||||
website_log.addHandler(website_consol_handler)
|
|
||||||
|
|
||||||
#var
|
#var
|
||||||
status = True
|
status = True
|
||||||
|
|
Loading…
Reference in a new issue