From e1eff20d33ce27528350d41cf0bd9c6678016f12 Mon Sep 17 00:00:00 2001 From: Christoph Matthies Date: Fri, 26 Apr 2019 14:52:36 +0200 Subject: [PATCH] Comment(application.rb): Describe what the custom logger does --- config/application.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 72d3093d..42faceda 100644 --- a/config/application.rb +++ b/config/application.rb @@ -17,7 +17,8 @@ class Application < Rails::Application # Load files in lib config.eager_load_paths << Rails.root.join('lib') - # set custom formatter to support creating Notifications when an error is logged + # Use custom log formatter which creates Notification objects for admin users + # when an application error is logged, making errors visisble in the application config.log_formatter = HartFormatter.new # Use normal JS (default), not coffeescript