Logtail updates
This commit is contained in:
@@ -49,10 +49,10 @@ Rails.application.configure do
|
||||
config.assume_ssl = ActiveModel::Type::Boolean.new.cast(ENV.fetch("RAILS_ASSUME_SSL", true))
|
||||
|
||||
# Log to Logtail if API key is present, otherwise log to STDOUT
|
||||
base_logger = if ENV["LOGTAIL_API_KEY"].present?
|
||||
base_logger = if ENV["LOGTAIL_API_KEY"].present? && ENV["LOGTAIL_INGESTING_HOST"].present?
|
||||
Logtail::Logger.create_default_logger(
|
||||
ENV["LOGTAIL_API_KEY"],
|
||||
telemetry_host: "in.logs.betterstack.com"
|
||||
ingesting_host: ENV["LOGTAIL_INGESTING_HOST"]
|
||||
)
|
||||
else
|
||||
ActiveSupport::Logger.new(STDOUT)
|
||||
|
||||
Reference in New Issue
Block a user