]> git.kaiwu.me - nginx.git/commit
Complain on invalid log levels.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 18 Aug 2011 21:48:13 +0000 (21:48 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 18 Aug 2011 21:48:13 +0000 (21:48 +0000)
commit65c32b255dbb98a228330090d4ddb889a88994f5
tree5a84b62a27cd3cddbb9e8748bd2e570ad41f7304
parentb7fcb430c156952fce4cb43a0a3cd81c2a5c939e
Complain on invalid log levels.

Previously only first log level was required to be correct, while error_log
directive in fact accepts list of levels (e.g. one may specify "error_log ...
debug_core debug_http;").  This resulted in (avoidable) wierd behaviour on
missing semicolon after error_log directive, e.g.

    error_log /path/to/log info
    index index.php;

silently skipped index directive and it's arguments (trying to interpret
them as log levels without checking to be correct).
src/core/ngx_log.c