Skip to content

Commit 223896b

Browse files
committed
fix(dynamic_log_level): not work for nginx debug log
fix https://konghq.atlassian.net/browse/KAG-2644
1 parent 4fbc3dd commit 223896b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ngx_http_lua_kong_log.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ ngx_http_lua_kong_get_dynamic_log_level(ngx_uint_t current_log_level)
8181
return current_log_level;
8282
}
8383

84+
if (g_dynamic_log_level == NGX_LOG_DEBUG) {
85+
return NGX_LOG_DEBUG_ALL;
86+
}
87+
8488
return g_dynamic_log_level;
8589
}
8690

0 commit comments

Comments
 (0)