package/nginx: add debug logging support
Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
2748bc6b65
commit
bdbb0c8112
|
@ -354,6 +354,14 @@ config BR2_PACKAGE_NGINX_STREAM_UPSTREAM_ZONE_MODULE
|
|||
|
||||
endif #BR2_PACKAGE_NGINX_STREAM
|
||||
|
||||
config BR2_PACKAGE_NGINX_DEBUG
|
||||
bool "debug logging"
|
||||
help
|
||||
Enable debug logging. The debug level should be set with
|
||||
the error_log directive. For example
|
||||
|
||||
error_log /var/log/nginx/error.log debug;
|
||||
|
||||
comment "misc. modules"
|
||||
|
||||
config BR2_PACKAGE_NGINX_SELECT_MODULE
|
||||
|
|
|
@ -226,6 +226,9 @@ NGINX_CONF_OPTS += \
|
|||
|
||||
endif # BR2_PACKAGE_NGINX_STREAM
|
||||
|
||||
# Debug logging
|
||||
NGINX_CONF_OPTS += $(if $(BR2_PACKAGE_NGINX_DEBUG),--with-debug)
|
||||
|
||||
define NGINX_DISABLE_WERROR
|
||||
$(SED) 's/-Werror//g' -i $(@D)/auto/cc/*
|
||||
endef
|
||||
|
|
Loading…
Reference in a new issue