Sha256: 4da98cbeb9394c322b86622d055bf560c0e0437526b64707877eab326ec7a81b
Contents?: true
Size: 481 Bytes
Versions: 11
Compression:
Stored size: 481 Bytes
Contents
module Workers module Helpers def log_debug(msg, e = nil) @logger.debug(concat_e(msg, e)) end def log_info(msg, e = nil) @logger.info(concat_e(msg, e)) end def log_warn(msg, e = nil) @logger.warn(concat_e(msg, e)) end def log_error(msg, e = nil) @logger.error(concat_e(msg, e)) end def concat_e(msg, e = nil) return e ? "#{msg}\nEXCEPTION: #{e.message}\n#{e.backtrace.join("\n")}\n--" : msg end end end
Version data entries
11 entries across 11 versions & 1 rubygems