lib/heavylog.rb in heavylog-0.0.17 vs lib/heavylog.rb in heavylog-0.0.18

- old
+ new

@@ -136,9 +136,11 @@ messages: buffer.string.dup, }.merge(RequestStore.store[:heavylog_request_data] || {}) formatted = Heavylog.formatter.call(request) Heavylog.logger.send(Heavylog.log_level, formatted) + rescue StandardError => e + config.error_handler&.(exception: e) end def finish_sidekiq finish RequestStore.store[:heavylog_buffer] = nil