From 3f90e1589619bc4f893c1aaafe26bacd78a1a48a Mon Sep 17 00:00:00 2001 From: Nick Muerdter Date: Wed, 14 Sep 2016 17:52:49 -0600 Subject: [PATCH] Quiet raw nginx lua socket logging errors that were duplicative. These were duplicative our own custom log messages, and mostly added a lot of extra noise to our error handling inside the nginx log file. --- templates/etc/nginx/router.conf.mustache | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/etc/nginx/router.conf.mustache b/templates/etc/nginx/router.conf.mustache index 3986938d0..f40102aa8 100644 --- a/templates/etc/nginx/router.conf.mustache +++ b/templates/etc/nginx/router.conf.mustache @@ -37,6 +37,10 @@ http { lua_package_path '{{_package_path}}'; lua_package_cpath '{{_package_cpath}}'; + # Quiet the raw socket errors from the logs, since we should be handling any + # connection errors as appropriate in the Lua code. + lua_socket_log_errors off; + lua_shared_dict active_config {{nginx.shared_dicts.active_config.size}}; lua_shared_dict api_users {{nginx.shared_dicts.api_users.size}}; lua_shared_dict dns_cache {{nginx.shared_dicts.dns_cache.size}};