Skip to content

Commit

Permalink
Quiet raw nginx lua socket logging errors that were duplicative.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GUI committed Sep 14, 2016
1 parent f8495f1 commit 3f90e15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/etc/nginx/router.conf.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}};
Expand Down

0 comments on commit 3f90e15

Please sign in to comment.