Skip to content

Commit

Permalink
fix: set correct component in health server log lines
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Feb 24, 2024
1 parent a2eb70e commit a7a9a18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/util/health_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/,
Expand All @@ -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

Expand Down

0 comments on commit a7a9a18

Please sign in to comment.