add debug logging

This commit is contained in:
Igor Sysoev 2009-02-18 09:24:14 +00:00
parent 412ad87546
commit e50d758490
1 changed files with 4 additions and 0 deletions

View File

@ -318,6 +318,10 @@ ngx_http_browser(ngx_http_request_t *r, ngx_http_browser_conf_t *cf)
if (c == '.') {
version += ver * scale;
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"version: \"%ui\" \"%ui\"",
modern[i].version, version);
if (version > modern[i].version) {
return NGX_HTTP_MODERN_BROWSER;
}