Remove dublicate time string #2808

This commit is contained in:
Priit Tark 2015-07-23 17:04:17 +03:00
parent de557bf43e
commit 79ac8db0eb
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ module ActiveModel
end
# CUSTOM logging
Rails.logger.info "USER MSG: #{Time.now.to_s(:db)} ACTIVEMODEL: #{@base.try(:class)} [#{attribute}] #{message}" if message.present?
Rails.logger.info "USER MSG: ACTIVEMODEL: #{@base.try(:class)} [#{attribute}] #{message}" if message.present?
# END of CUSTOM logging
self[attribute] << message

View file

@ -1,7 +1,7 @@
# Log all user issues raised by active record
class ActiveRecord::Base
after_validation do |m|
Rails.logger.info "USER MSG: #{Time.now.to_s(:db)} ACTIVERECORD: #{m.class} ##{m.id} #{m.errors.full_messages} #{m.errors['epp_errors']}" if m.errors.present?
Rails.logger.info "USER MSG: ACTIVERECORD: #{m.class} ##{m.id} #{m.errors.full_messages} #{m.errors['epp_errors']}" if m.errors.present?
true
end
end

View file

@ -11,7 +11,7 @@ module ActionDispatch
session["flash"] = flash_hash.to_session_value
# EIS custom logging
Rails.logger.info "USER MSG: #{Time.now.to_s(:db)} FLASH: #{session['flash']['flashes'].inspect}" if session['flash']
Rails.logger.info "USER MSG: FLASH: #{session['flash']['flashes'].inspect}" if session['flash']
# END OF EIS custom logging
env[KEY] = flash_hash.dup