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

Correct simple loging

parent dd7ef2a1
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ WORKDIR /home/opaque
COPY app app
copy migrations migrations
COPY migrations migrations
COPY config.py opaque.py requirements.txt ./
RUN python -m venv venv && \
venv/bin/pip install -r requirements.txt
......
2019-09-11 12:48:21 - WARNING - werkzeug - _internal.py - 122 - * Debugger is active!
2019-09-11 12:48:21 - INFO - werkzeug - _internal.py - 122 - * Debugger PIN: 140-241-697
......@@ -36,9 +36,9 @@ class DevelopmentConfig(Config):
os.environ.get('POSTGRES_PASSWORD'),
os.environ.get('POSTGRES_DB_NAME')
)
log_format = "%(asctime)s - %(levelname)s - %(name)s - "\
"%(filename)s - %(lineno)d - %(message)s"
logging.basicConfig(filename='app/logs/main.log', level='WARNING',
log_format = ("%(asctime)s - %(levelname)s - %(name)s - "
"%(filename)s - %(lineno)d - %(message)s")
logging.basicConfig(filename='app/logs/opaque_flask.log', level='WARNING',
format=log_format, datefmt='%Y-%m-%d %H:%M:%S',
filemode='w')
......
......@@ -32,6 +32,7 @@ services:
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
volumes:
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
- ./app/logs/opaque_daemon.log:/home/opaque_daemon/logs/opaque_daemon.log
db:
deploy:
placement:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment