lib/semantic_logger/base.rb in semantic_logger-4.0.0.beta2 vs lib/semantic_logger/base.rb in semantic_logger-4.0.0.rc1

- old
+ new

@@ -120,14 +120,14 @@ # Log a thread backtrace def backtrace(thread: Thread.current, level: :warn, message: 'Backtrace:', payload: nil, metric: nil, metric_amount: 1) log = Log.new(name, level) backtrace = if thread == Thread.current - self.class.cleanse_backtrace + Log.cleanse_backtrace else log.thread_name = thread.name - log.tags = thread[:semantic_logger_tags].clone - log.named_tags = thread[:semantic_logger_named_tags].clone + log.tags = (thread[:semantic_logger_tags] || []).clone + log.named_tags = (thread[:semantic_logger_named_tags] || []).clone thread.backtrace end # TODO: Keep backtrace instead of transforming into a text message at this point # Maybe log_backtrace: true if backtrace