Skip to content

Commit

Permalink
config: adjust logs to have uuid prepended, remove timestamp
Browse files Browse the repository at this point in the history
before:
I, [2017-06-07T10:42:23.504812 #59900]  INFO -- : Completed 200 OK in 99ms (Views: 85.3ms | ActiveRecord: 2.1ms)

after:
[0b70d2e0-e144-4e96-a771-94b8cd1b5918] Completed 200 OK in 2104ms (Views: 21.1ms | ActiveRecord: 8.3ms)
  • Loading branch information
jcs authored and mtnygard committed Jan 30, 2018
1 parent 1f7bea6 commit 72d33da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
config.log_level = :info

# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
config.log_tags = [ :uuid ]

# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
Expand All @@ -71,7 +71,7 @@
# config.autoflush_log = false

# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
# config.log_formatter = ::Logger::Formatter.new

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
Expand Down

0 comments on commit 72d33da

Please sign in to comment.