mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Correct simple loging
This commit is contained in:
parent
dd7ef2a113
commit
3accc058e3
@ -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
|
||||
|
@ -1,2 +0,0 @@
|
||||
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
|
0
app/logs/opaque_daemon.log
Normal file
0
app/logs/opaque_daemon.log
Normal file
0
app/logs/opaque_flask.log
Normal file
0
app/logs/opaque_flask.log
Normal file
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user