Skip to content

Commit 3f90e15

Browse files
committed
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.
1 parent f8495f1 commit 3f90e15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/etc/nginx/router.conf.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ http {
3737
lua_package_path '{{_package_path}}';
3838
lua_package_cpath '{{_package_cpath}}';
3939

40+
# Quiet the raw socket errors from the logs, since we should be handling any
41+
# connection errors as appropriate in the Lua code.
42+
lua_socket_log_errors off;
43+
4044
lua_shared_dict active_config {{nginx.shared_dicts.active_config.size}};
4145
lua_shared_dict api_users {{nginx.shared_dicts.api_users.size}};
4246
lua_shared_dict dns_cache {{nginx.shared_dicts.dns_cache.size}};

0 commit comments

Comments
 (0)