Sha256: 6ae2fc7a7cf37ed74ea2653ec90c6dd5137507638224b7b1224abd849a1aaaac
Contents?: true
Size: 713 Bytes
Versions: 8
Compression:
Stored size: 713 Bytes
Contents
module Groonga class Logger def log_error(error) log_level = Level::ERROR.to_i message = "#{error.class}: #{error.message}" backtrace = error.backtrace first_raw_entry = backtrace.first if first_raw_entry first_entry = BacktraceEntry.parse(first_raw_entry) file = first_entry.file line = first_entry.line method = first_entry.method else file = "" line = 0 method = "" end log(log_level, file, line, method, message) backtrace.each do |raw_entry| entry = BacktraceEntry.parse(raw_entry) log(log_level, entry.file, entry.line, entry.method, raw_entry) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems