added logging lib
This commit is contained in:
parent
c88f55427d
commit
8fb1d9b4d7
@ -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
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import json
|
||||
|
||||
import logging
|
||||
|
||||
def GetBerths():
|
||||
"""
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import json
|
||||
|
||||
import logging
|
||||
|
||||
def GetNotifications(options):
|
||||
"""
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import sys
|
||||
import json
|
||||
import mariadb
|
||||
import logging
|
||||
|
||||
def GetParticipant(options):
|
||||
"""
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import json
|
||||
|
||||
import logging
|
||||
|
||||
def GetShipcalls(options):
|
||||
"""
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import json
|
||||
|
||||
import logging
|
||||
|
||||
def GetTimes(options):
|
||||
"""
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import json
|
||||
|
||||
import logging
|
||||
|
||||
def GetVerify():
|
||||
"""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user