From 166d0ccd6a8e60beb67e89b785df4789e3064608 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 13 Jun 2024 22:05:03 +0400 Subject: [PATCH] payload --- lib/formatters/ansi_formatter.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/formatters/ansi_formatter.rb b/lib/formatters/ansi_formatter.rb index 226803b..10f40ff 100644 --- a/lib/formatters/ansi_formatter.rb +++ b/lib/formatters/ansi_formatter.rb @@ -166,6 +166,12 @@ class AnsiFormatter < SemanticLogger::Formatters::Color colorize(log.message) if log.message end + def payload + return unless log.payload + + log.payload.ai(indent: 2, object_id: false) + end + def exception return unless log.exception