mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
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
|
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"
|
comment "misc. modules"
|
||||||
|
|
||||||
config BR2_PACKAGE_NGINX_SELECT_MODULE
|
config BR2_PACKAGE_NGINX_SELECT_MODULE
|
||||||
|
@ -226,6 +226,9 @@ NGINX_CONF_OPTS += \
|
|||||||
|
|
||||||
endif # BR2_PACKAGE_NGINX_STREAM
|
endif # BR2_PACKAGE_NGINX_STREAM
|
||||||
|
|
||||||
|
# Debug logging
|
||||||
|
NGINX_CONF_OPTS += $(if $(BR2_PACKAGE_NGINX_DEBUG),--with-debug)
|
||||||
|
|
||||||
define NGINX_DISABLE_WERROR
|
define NGINX_DISABLE_WERROR
|
||||||
$(SED) 's/-Werror//g' -i $(@D)/auto/cc/*
|
$(SED) 's/-Werror//g' -i $(@D)/auto/cc/*
|
||||||
endef
|
endef
|
||||||
|
Loading…
x
Reference in New Issue
Block a user