﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1698	A minor optimization for ngx_log_debug	chronolaw@…		"In ngx_log_debug, it will compare log_level and level use '&'，but if we compose multi levels it will case a compiler error (suggest parentheses around arithmetic in operand of ‘|’).

For example :
ngx_log_debug2(
    NGX_LOG_DEBUG_HTTP|NGX_LOG_DEBUG_CONNECTION,...)

this code will be:

log->log_level & NGX_LOG_DEBUG_HTTP|NGX_LOG_DEBUG_CONNECTION

So I think we should add parentheses around 'level' in macro.
Please check the patch,Thanks all of you, nginx team.

(by the way, I can not config hg's emailbomb, please forgive my behavior)

"	enhancement	closed	minor		nginx-core	1.15.x	invalid	ngx_log_debug			nginx version: nginx/1.15.6
