Sha256: 690ed43257daddd590915b8df8bb9ec45da222f9c1c11801e24b30e4eda0ceb7
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
require 'alephant/logger' module Alephant module Publisher module Request module LogHelper include Logger def log_error_with_metric(e, method, message, metric = nil) logger.error "Publisher::Request::#{method}: '#{e.class}(#{e.message})' exception raised for: #{message}" logger.metric metric unless metric.nil? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems