package/nginx: add debug logging support
authorMartin Bark <martin@barkynet.com>
Tue, 3 May 2016 09:36:57 +0000 (10:36 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 5 May 2016 20:44:19 +0000 (22:44 +0200)
Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nginx/Config.in
package/nginx/nginx.mk

index ca3e3eb4b09ae0ca5ed0ee675d0cf978801ef1a7..9f3c218daeb539d95c049ab760473b948204b90b 100644 (file)
@@ -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
index 91772b351b207445739e22b2bf29538ac38cf949..c1e8367dab7e7b6d0dda6c90d7ed41a5fef8dc80 100644 (file)
@@ -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