Class: ActiveKms::LogSubscriber
- Inherits:
-
ActiveSupport::LogSubscriber
- Object
- ActiveSupport::LogSubscriber
- ActiveKms::LogSubscriber
- Defined in:
- lib/active_kms/log_subscriber.rb
Instance Method Summary collapse
Instance Method Details
#decrypt(event) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/active_kms/log_subscriber.rb', line 3 def decrypt(event) return unless logger.debug? name = "Decrypt Data Key (#{event.duration.round(1)}ms)" debug " #{color(name, YELLOW, bold: true)}" end |
#encrypt(event) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/active_kms/log_subscriber.rb', line 10 def encrypt(event) return unless logger.debug? name = "Encrypt Data Key (#{event.duration.round(1)}ms)" debug " #{color(name, YELLOW, bold: true)}" end |