Skip to content

Commit a285328

Browse files
committed
Correct application name, include version in prod
1 parent 642b752 commit a285328

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,6 @@ class Application < Rails::Application
7575
config.x.cloudflare_turnstile.enabled = ENV['CLOUDFLARE_TURNSTILE_SECRET_KEY'].present?
7676

7777
config.rails_semantic_logger.format = :json
78+
config.semantic_logger.application = 'editor-api'
7879
end
7980
end

config/environments/production.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
$stdout.sync = true
5151
config.rails_semantic_logger.add_file_appender = false
5252
config.semantic_logger.add_appender(io: $stdout, formatter: :json)
53+
config.semantic_logger.application = "editor-api@#{ENV[HEROKU_SLUG_COMMIT] || 'unknown'}"
5354
end
5455

5556
# Prepend all log lines with the following tags.

0 commit comments

Comments
 (0)