test-nginx
test-nginx copied to clipboard
error_log with multiple requests
This does not work --- request eval ["GET /1" # outputs in_1 to error_log ,"GET /2" # outputs in_2 to error_log ] --- error_log eval # checks both with every request ["in_1" ,"in_2 ]
How to use error_log and multiple requests? Problem is that error_log eval uses multiple patterns and you can not distinguish them from multiple requests.
@maage Right, it does not work with multiple requests. Better just accumulate the error logs and check them in a single run. See the check_accum_error_log function. Also just use the subrequests for multiple requests.