mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
Logtail updates
This commit is contained in:
parent
019a0d873c
commit
dab693d74f
1 changed files with 2 additions and 2 deletions
|
@ -49,10 +49,10 @@ Rails.application.configure do
|
||||||
config.assume_ssl = ActiveModel::Type::Boolean.new.cast(ENV.fetch("RAILS_ASSUME_SSL", true))
|
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
|
# 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(
|
Logtail::Logger.create_default_logger(
|
||||||
ENV["LOGTAIL_API_KEY"],
|
ENV["LOGTAIL_API_KEY"],
|
||||||
telemetry_host: "in.logs.betterstack.com"
|
ingesting_host: ENV["LOGTAIL_INGESTING_HOST"]
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
ActiveSupport::Logger.new(STDOUT)
|
ActiveSupport::Logger.new(STDOUT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue