Skip to content

Commit

Permalink
Reuse logger to log start banner instead of puts method
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Jan 30, 2024
1 parent 239e2c6 commit ca5c77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/prometheus_exporter
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def run

runner = PrometheusExporter::Server::Runner.new(options)

puts "#{Time.now} Starting prometheus exporter on #{runner.bind}:#{runner.port}"
logger.info "Starting prometheus exporter on #{runner.bind}:#{runner.port}"
runner.start
sleep
end
Expand Down

0 comments on commit ca5c77e

Please sign in to comment.