There was an error while loading. Please reload this page.
1 parent 3e1b3ab commit f2537f8Copy full SHA for f2537f8
lib/code0/zero_track/logs/json_formatter.rb
@@ -29,11 +29,27 @@ def chomp(message)
29
message.strip
30
end
31
32
+ class NoOpTagStack
33
+ include Singleton
34
+
35
+ def push_tags(*)
36
+ []
37
+ end
38
39
+ def pop_tags(*); end
40
41
+ def clear; end
42
43
+ def format_message(message)
44
+ message
45
46
47
48
class Tagged < JsonFormatter
49
include ActiveSupport::TaggedLogging::Formatter
50
- def tagged(*_args)
- yield self # Ignore tags, they break the json layout as they are prepended to the log line
51
+ def tag_stack
52
+ NoOpTagStack.instance
53
54
55
0 commit comments