Skip to content
This repository was archived by the owner on Jul 25, 2025. It is now read-only.

Commit d53f60e

Browse files
committed
Refactor Logtail logger configuration in production.rb to use ingesting_host from environment variables
1 parent 693178c commit d53f60e

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

config/application.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,5 @@ class Application < Rails::Application
2626
# config.time_zone = "Central Time (US & Canada)"
2727
# config.eager_load_paths << Rails.root.join("extras")
2828
config.active_support.to_time_preserves_timezone = :zone
29-
30-
config.logger = Logtail::Logger.create_default_logger(ENV["LOGTAIL_API_KEY"], ingesting_host: ENV["LOGTAIL_INGESTING_HOST"])
3129
end
3230
end

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
config.logger = if ENV["LOGTAIL_API_KEY"].present?
5050
Logtail::Logger.create_default_logger(
5151
ENV["LOGTAIL_API_KEY"],
52-
telemetry_host: "in.logs.betterstack.com"
52+
ingesting_host: ENV["LOGTAIL_INGESTING_HOST"]
5353
)
5454
else
5555
ActiveSupport::Logger.new(STDOUT)

0 commit comments

Comments
 (0)