Sha256: 078b718fd709bb3080f33e213fcccac4fdf2c975cb45f52fc089e2eb318e2ca2
Contents?: true
Size: 391 Bytes
Versions: 4
Compression:
Stored size: 391 Bytes
Contents
# frozen_string_literal: true module ExceptionTrack class LogSubscriber < ActiveSupport::LogSubscriber # ActiveSupport::Notifications.instrument('track.exception_track', action: action) def track(event) prefix = color("ExceptionTrack", CYAN) title = color(event.payload[:title], RED) debug " #{prefix} track db (#{event.duration.round(1)}ms)" end end end
Version data entries
4 entries across 4 versions & 1 rubygems