File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -938,3 +938,28 @@ GET /test
938938]
939939-- - no_log eval
940940" you can't see me init_worker"
941+
942+
943+ === TEST 25 : debug log level for nginx error. log
944+ -- - http_config
945+ lua_package_path " ../lua-resty-core/lib/?.lua;lualib/?.lua;;" ;
946+ -- - config
947+ location = /test_nginx_debug_log {
948+
949+ error_log logs/ error. log crit;
950+
951+ content_by_lua_block {
952+ local log = require (" resty.kong.log" )
953+ log . set_log_level(ngx. DEBUG, 10 )
954+ assert(log . get_log_level(ngx. WARN) == ngx. DEBUG)
955+ ngx. exit(200 )
956+ }
957+ }
958+ --- request
959+ GET /test_nginx_debug_log
960+ -- - wait : 2
961+ -- - error_code: 200
962+ -- - error_log eval
963+ [
964+ " http finalize request: 200, " / test_nginx_debug_log? " a:1, c:1" ,
965+ ]
You can’t perform that action at this time.
0 commit comments