Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7066246
D6774.id24576.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D6774.id24576.diff
View Options
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
Details
Attached
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
Attached To
D6774: Add durations to nginx and swh-storage access log
Event Timeline
Log In to Comment