Skip to content

Commit 524595c

Browse files
authored
fix: Do not leak SemanticLogger settings outside of isolation (#30)
1 parent 342f889 commit 524595c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/echo_endpoint.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def initialize(a_var: 1)
1616
end
1717

1818
if __FILE__ == $PROGRAM_NAME
19+
SemanticLogger.default_level = :info
20+
SemanticLogger.add_appender(io: $stdout, formatter: :color)
1921
EchoService.run(
2022
nats_url: 'nats://localhost:4222',
2123
service_opts: {

lib/leopard.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require 'dry/configurable'
44
require 'pathname'
55
require 'semantic_logger'
6-
SemanticLogger.add_appender(io: $stdout, formatter: :color)
76

87
class Pathname
98
def /(other)

0 commit comments

Comments
 (0)