added logging lib

This commit is contained in:
Daniel Schick 2023-03-17 09:03:26 +01:00
parent c88f55427d
commit 8fb1d9b4d7
7 changed files with 10 additions and 5 deletions

View File

@ -1,6 +1,7 @@
from flask import Flask
import os
import logging
from .api import shipcalls
from .api import verify
@ -32,4 +33,7 @@ def create_app(test_config=None):
app.register_blueprint(times.bp)
app.register_blueprint(notifications.bp)
logging.basicConfig(filename='brecal.log', level=logging.DEBUG, format='%(asctime)s | %(name)s | %(levelname)s | %(message)s')
logging.info('App started')
return app

View File

@ -1,5 +1,5 @@
import json
import logging
def GetBerths():
"""

View File

@ -1,5 +1,5 @@
import json
import logging
def GetNotifications(options):
"""

View File

@ -1,6 +1,7 @@
import sys
import json
import mariadb
import logging
def GetParticipant(options):
"""

View File

@ -1,5 +1,5 @@
import json
import logging
def GetShipcalls(options):
"""

View File

@ -1,5 +1,5 @@
import json
import logging
def GetTimes(options):
"""

View File

@ -1,5 +1,5 @@
import json
import logging
def GetVerify():
"""