From a7a9a18b201ec1b70de7bf0995a3f934de57405a Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Sat, 24 Feb 2024 10:24:34 +0000 Subject: [PATCH] fix: set correct component in health server log lines --- app/util/health_server.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/util/health_server.rb b/app/util/health_server.rb index 0e8d4819..6ceaa043 100644 --- a/app/util/health_server.rb +++ b/app/util/health_server.rb @@ -87,9 +87,9 @@ def add(severity, message) case message when /\AWEBrick::HTTPServer#start:.*port=(\d+)/ - Postal.logger.info "started health server on port #{::Regexp.last_match(1)}", component: "true" + Postal.logger.info "started health server on port #{::Regexp.last_match(1)}", component: "health-server" when /\AWEBrick::HTTPServer#start done/ - Postal.logger.info "stopped health server" + Postal.logger.info "stopped health server", component: "health-server" when /\AWEBrick [\d.]+/, /\Aruby ([\d.]+)/, /\ARack::Handler::WEBrick is mounted/, @@ -98,7 +98,7 @@ def add(severity, message) # Don't actually print routine messages to avoid too much # clutter when processes start it else - Postal.logger.debug message, component: "true" + Postal.logger.debug message, component: "health-server" end end