Skip to content
Snippets Groups Projects
Commit 682ca309 authored by Stephan Porada's avatar Stephan Porada :speech_balloon:
Browse files

Fix logging.

parent 2368cfb1
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ class DevelopmentConfig(Config): ...@@ -46,7 +46,7 @@ class DevelopmentConfig(Config):
format=log_format, datefmt='%Y-%m-%d %H:%M:%S', format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
filemode='w') filemode='w')
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.info('Logging has started with level WARNING.') logger.warning('Logging has started with level WARNING.')
class TestingConfig(Config): class TestingConfig(Config):
...@@ -77,7 +77,7 @@ class ProductionConfig(Config): ...@@ -77,7 +77,7 @@ class ProductionConfig(Config):
format=log_format, datefmt='%Y-%m-%d %H:%M:%S', format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
filemode='w') filemode='w')
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.info('Logging has started with level ERROR.') logger.error('Logging has started with level ERROR.')
config = { config = {
......
...@@ -34,7 +34,7 @@ services: ...@@ -34,7 +34,7 @@ services:
- web.env - web.env
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
volumes: volumes:
- ./logs/opaque_daemon.log:/home/opaque_daemon/logs/opaque_daemon.log - ./logs:/home/opaque_daemon/logs
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json - $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
db: db:
deploy: deploy:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment