Sha256: f37782c1e31772af673c8a8e721667fd531cf72e42697b3e133ec9d937fcf64e
Contents?: true
Size: 448 Bytes
Versions: 32
Compression:
Stored size: 448 Bytes
Contents
module Appsignal module Utils # Subclass of logger with method to only log a warning once # prevents the local log from filling up with repeated messages. class IntegrationLogger < ::Logger def seen_keys @seen_keys ||= Set.new end def warn_once_then_debug(key, message) if !seen_keys.add?(key).nil? warn message else debug message end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems