Page MenuHomeSoftware Heritage

D6774.id24576.diff
No OneTemporary

D6774.id24576.diff

diff --git a/docker/conf/nginx.conf b/docker/conf/nginx.conf
--- a/docker/conf/nginx.conf
+++ b/docker/conf/nginx.conf
@@ -19,6 +19,11 @@
# upstreams.
resolver 127.0.0.11 valid=30s;
+ log_format combined_with_duration '$remote_addr - $remote_user [$time_local] '
+ '"$request" $status $body_bytes_sent '
+ '"$http_referer" "$http_user_agent" $request_time';
+ access_log /dev/stdout combined_with_duration;
+
server {
listen 5080 default_server;
diff --git a/docker/services/swh-storage/entrypoint.sh b/docker/services/swh-storage/entrypoint.sh
--- a/docker/services/swh-storage/entrypoint.sh
+++ b/docker/services/swh-storage/entrypoint.sh
@@ -40,9 +40,11 @@
echo Starting the swh-storage API server
exec gunicorn --bind 0.0.0.0:5002 \
--reload \
+ --access-logfile /dev/stdout \
+ --access-logformat "%(t)s %(r)s %(s)s %(b)s %(M)s" \
--threads 4 \
--workers 2 \
- --log-level DEBUG \
+ --log-level INFO \
--timeout 3600 \
--config 'python:swh.core.api.gunicorn_config' \
'swh.storage.api.server:make_app_from_configfile()'

File Metadata

Mime Type
text/plain
Expires
Nov 5 2024, 3:53 AM (10 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225350

Event Timeline