Skip to content
Snippets Groups Projects

Use structured logging for DB load balancer

Merged Hordur Freyr Yngvason requested to merge use-structured-logging-for-db-load-balancer into master
All threads resolved!
2 files
+ 5
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -57,7 +57,8 @@ def offline!
LoadBalancing::Logger.warn(
event: :host_offline,
message: 'Marking host as offline',
db_host: @host
db_host: @host,
db_port: @port
)
@online = false
@@ -74,7 +75,8 @@ def online?
LoadBalancing::Logger.info(
event: :host_online,
message: 'Host came back online',
db_host: @host
db_host: @host,
db_port: @port
)
end
Loading