From 075c994f7cff5a25b7939277feed27c34b44d00a Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 20 Aug 2023 19:35:21 -0400 Subject: [PATCH 1/3] feat: route access logs to stdout Closes #35 --- conf/app-nginx.conf.sigil | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/app-nginx.conf.sigil b/conf/app-nginx.conf.sigil index 9b7976f..91c6447 100644 --- a/conf/app-nginx.conf.sigil +++ b/conf/app-nginx.conf.sigil @@ -11,6 +11,7 @@ http { types_hash_max_size 2048; include mime.types; charset UTF-8; + access_log /dev/stdout; server { listen {{ $.PORT }}; server_name _; From bef26ef6d6b3bbf7075384a6f9f6fd94975a5454 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 20 Aug 2023 19:48:36 -0400 Subject: [PATCH 2/3] fix: use `stdout` instead of `/dev/stdout` `/dev/stdout` appears to have permissions issues, while the comments on this stackoverflow post[1] appear to indicate that stdout should work fine. [1] https://stackoverflow.com/a/23328458/1515875 --- conf/app-nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/app-nginx.conf.sigil b/conf/app-nginx.conf.sigil index 91c6447..93607ae 100644 --- a/conf/app-nginx.conf.sigil +++ b/conf/app-nginx.conf.sigil @@ -11,7 +11,7 @@ http { types_hash_max_size 2048; include mime.types; charset UTF-8; - access_log /dev/stdout; + access_log stdout; server { listen {{ $.PORT }}; server_name _; From 17bce99492a742999184e74673d67645a0689211 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 20 Aug 2023 20:07:17 -0400 Subject: [PATCH 3/3] fix: write info level error logs --- conf/app-nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/app-nginx.conf.sigil b/conf/app-nginx.conf.sigil index 93607ae..b214270 100644 --- a/conf/app-nginx.conf.sigil +++ b/conf/app-nginx.conf.sigil @@ -1,5 +1,5 @@ worker_processes 1; -error_log stderr; +error_log stderr info; pid nginx.pid; daemon off;