mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-01 18:30:34 +00:00
Use logging again
This commit is contained in:
@ -36,7 +36,6 @@ class DevelopmentConfig(Config):
|
||||
os.environ.get('POSTGRES_PASSWORD'),
|
||||
os.environ.get('POSTGRES_DB_NAME')
|
||||
)
|
||||
'''
|
||||
if not os.path.isfile('logs/opaque_web.log'):
|
||||
file_path = os.path.join(os.getcwd(), 'logs/opaque_web.log')
|
||||
log = open(file_path, 'w+')
|
||||
@ -50,7 +49,6 @@ class DevelopmentConfig(Config):
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.warning('Logging has started with level WARNING.'
|
||||
' From development config.')
|
||||
'''
|
||||
|
||||
|
||||
class TestingConfig(Config):
|
||||
@ -71,7 +69,6 @@ class ProductionConfig(Config):
|
||||
os.environ.get('POSTGRES_PASSWORD'),
|
||||
os.environ.get('POSTGRES_DB_NAME')
|
||||
)
|
||||
'''
|
||||
if not os.path.isfile('logs/opaque_web.log'):
|
||||
file_path = os.path.join(os.getcwd(), 'logs/opaque_web.log')
|
||||
log = open(file_path, 'w+')
|
||||
@ -85,7 +82,6 @@ class ProductionConfig(Config):
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.error('Logging has started with level ERROR.'
|
||||
' From production config.')
|
||||
'''
|
||||
|
||||
|
||||
config = {
|
||||
|
Reference in New Issue
Block a user