Skip to content

Commit

Permalink
Adjusting sneakers worker log format.
Browse files Browse the repository at this point in the history
Signed-off-by: EdmondFrank <[email protected]>
  • Loading branch information
EdmondFrank committed Jun 7, 2023
1 parent c7479d2 commit d9ea24d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
# Uncomment if you wish to allow Action Cable access from any origin.
# config.action_cable.disable_request_forgery_protection = true

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

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

# Mailer configs
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

Expand Down
1 change: 1 addition & 0 deletions config/initializers/sneakers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
}

Sneakers.configure(opts)
Sneakers.logger.formatter = ::Logger::Formatter.new
Sneakers.logger.level = Logger::INFO

0 comments on commit d9ea24d

Please sign in to comment.