lib/logster/base_store.rb in logster-2.7.0 vs lib/logster/base_store.rb in logster-2.7.1

- old
+ new

@@ -154,10 +154,10 @@ msg = msg.inspect unless String === msg msg = truncate_message(msg) message = Logster::Message.new(severity, progname, msg, opts[:timestamp], count: opts[:count]) - env = opts[:env] || {} + env = opts[:env]&.dup || {} backtrace = opts[:backtrace] if Hash === env && env[:backtrace] # Special - passing backtrace through env backtrace = env.delete(:backtrace) end