Merge branch 'hotfix/3.4.7'
This commit is contained in:
10
app/log/standard_notes_formatter.rb
Normal file
10
app/log/standard_notes_formatter.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class StandardNotesFormatter < ActiveSupport::Logger::SimpleFormatter
|
||||
def call(severity, timestamp, _progname, message)
|
||||
{
|
||||
level: severity,
|
||||
time: timestamp,
|
||||
message: message,
|
||||
ddsource: ['ruby'],
|
||||
}.to_json + "\n"
|
||||
end
|
||||
end
|
||||
@@ -21,6 +21,9 @@ Rails.application.configure do
|
||||
config.logger = ActiveSupport::Logger.new(STDOUT)
|
||||
end
|
||||
|
||||
config.colorize_logging = false
|
||||
config.logger.formatter = StandardNotesFormatter.new
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
|
||||
@@ -14,6 +14,9 @@ Rails.application.configure do
|
||||
config.logger = ActiveSupport::Logger.new(STDOUT)
|
||||
end
|
||||
|
||||
config.colorize_logging = false
|
||||
config.logger.formatter = StandardNotesFormatter.new
|
||||
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both threaded web servers
|
||||
# and those relying on copy on write to perform better.
|
||||
|
||||
Reference in New Issue
Block a user