# frozen_string_literal: true # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE Rails.application.configure do if Rails.env != 'test' config.lograge.enabled = true # add time to lograge config.lograge.custom_options = lambda do |event| { time: event.time, exception: event.payload[:exception], # ["ExceptionClass", "the message"] exception_object: event.payload[:exception_object] } # the exception instance end end end