Welcome! Log In Create A New Profile

Advanced

Bump upstream error severity in logging

Posted by sivann 
Bump upstream error severity in logging
August 23, 2017 04:26AM
In reverse proxy, when an upstream causes an error (e.g. closes the connection abruptly) the next upstream is contacted. That is not logged but since it is an error it should be logged with ERROR status as it is crucial to help debug our upstreams. The only relevant log I've found is:

ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,"http next upstream, %xi", ft_type);

in ngx_http_upstream_next().

Sincei it is prohibiting to run nginx in debug mode in production for long periods, please bump log_debug to somthing higher. After all it is actually an error, more so than 5xx.
Kind Regards,
-Spiros
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 122
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready