lib/memolog.rb in memolog-0.2.2 vs lib/memolog.rb in memolog-0.3.0
- old
+ new
@@ -9,11 +9,11 @@
require "memolog/extension"
require "memolog/formatter"
require "memolog/init"
require "memolog/middleware"
require "memolog/sentry_scope_extension"
-require "memolog/sentry_sidekiq_middleware"
+require "memolog/sentry_sidekiq_middleware_extension"
module Memolog
extend self
attr_accessor :config, :logdevs
@@ -57,8 +57,8 @@
return if logdevs.empty?
beginning = logdevs.last.string.length - config.log_size_limit
beginning = 0 if beginning.negative?
- logdevs.last.string.slice(beginning, config.log_size_limit)
+ logdevs.last.string.slice(beginning, config.log_size_limit).presence
end
end