added logging lib
This commit is contained in:
parent
c88f55427d
commit
8fb1d9b4d7
@ -1,6 +1,7 @@
|
|||||||
from flask import Flask
|
from flask import Flask
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import logging
|
||||||
|
|
||||||
from .api import shipcalls
|
from .api import shipcalls
|
||||||
from .api import verify
|
from .api import verify
|
||||||
@ -32,4 +33,7 @@ def create_app(test_config=None):
|
|||||||
app.register_blueprint(times.bp)
|
app.register_blueprint(times.bp)
|
||||||
app.register_blueprint(notifications.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
|
return app
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
def GetBerths():
|
def GetBerths():
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
def GetNotifications(options):
|
def GetNotifications(options):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import mariadb
|
import mariadb
|
||||||
|
import logging
|
||||||
|
|
||||||
def GetParticipant(options):
|
def GetParticipant(options):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
def GetShipcalls(options):
|
def GetShipcalls(options):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
def GetTimes(options):
|
def GetTimes(options):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
|
|
||||||
def GetVerify():
|
def GetVerify():
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user