mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Remove dublicate time string #2808
This commit is contained in:
parent
de557bf43e
commit
79ac8db0eb
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue