From af7321511c960120d61cfd22e031f43071d5a9c2 Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Thu, 28 Apr 2022 12:16:25 -0400 Subject: httpcaddyfile: Fix duplicate access log when debug is on (#4746) --- .../global_options_debug_with_access_log.txt | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 caddytest/integration/caddyfile_adapt/global_options_debug_with_access_log.txt (limited to 'caddytest') diff --git a/caddytest/integration/caddyfile_adapt/global_options_debug_with_access_log.txt b/caddytest/integration/caddyfile_adapt/global_options_debug_with_access_log.txt new file mode 100644 index 0000000..772cd08 --- /dev/null +++ b/caddytest/integration/caddyfile_adapt/global_options_debug_with_access_log.txt @@ -0,0 +1,45 @@ +{ + debug +} + +:8881 { + log { + format console + } +} +---------- +{ + "logging": { + "logs": { + "default": { + "level": "DEBUG", + "exclude": [ + "http.log.access.log0" + ] + }, + "log0": { + "encoder": { + "format": "console" + }, + "level": "DEBUG", + "include": [ + "http.log.access.log0" + ] + } + } + }, + "apps": { + "http": { + "servers": { + "srv0": { + "listen": [ + ":8881" + ], + "logs": { + "default_logger_name": "log0" + } + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3