Merge branch 'hotfix/3.4.7' into develop

This commit is contained in:
Karol Sójko
2020-09-21 13:20:35 +02:00
3 changed files with 16 additions and 0 deletions

View 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

View File

@@ -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

View File

@@ -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.