diff --git a/lib/govuk_app_config/govuk_logging.rb b/lib/govuk_app_config/govuk_logging.rb index 00c55e24..9a32f886 100644 --- a/lib/govuk_app_config/govuk_logging.rb +++ b/lib/govuk_app_config/govuk_logging.rb @@ -51,7 +51,7 @@ def self.configure $real_stdout, # rubocop:disable Style/GlobalVars level: Rails.logger.level, formatter: proc { |_severity, _datetime, _progname, msg| - "#{String === msg ? msg : msg.inspect}\n" + "#{msg.is_a?(String) ? msg : msg.inspect}\n" }, ) Rails.application.config.logstasher.suppress_app_log = true