Disabled debug messages.
This commit is contained in:
parent
f334c2308e
commit
993a00eb3f
2 changed files with 6 additions and 6 deletions
|
@ -49,9 +49,9 @@ class Observer::History < ActiveRecord::Observer
|
||||||
# puts record.inspect
|
# puts record.inspect
|
||||||
|
|
||||||
diff = differences_from?(current, record)
|
diff = differences_from?(current, record)
|
||||||
puts ' DIFF'
|
#puts ' DIFF'
|
||||||
puts ' ' + diff.inspect
|
#puts ' ' + diff.inspect
|
||||||
puts ' CURRENT USER ID ' + UserInfo.current_user_id.to_s
|
#puts ' CURRENT USER ID ' + UserInfo.current_user_id.to_s
|
||||||
|
|
||||||
map = {
|
map = {
|
||||||
:group_id => {
|
:group_id => {
|
||||||
|
@ -88,11 +88,11 @@ class Observer::History < ActiveRecord::Observer
|
||||||
# do not log created_at and updated_at attributes
|
# do not log created_at and updated_at attributes
|
||||||
next if ignore_attributes[key.to_sym] == true
|
next if ignore_attributes[key.to_sym] == true
|
||||||
|
|
||||||
puts " CHANGED: #{key} is #{value_ids.inspect}"
|
#puts " CHANGED: #{key} is #{value_ids.inspect}"
|
||||||
|
|
||||||
# check if diff are ids, if yes do lookup
|
# check if diff are ids, if yes do lookup
|
||||||
if value_ids[0].to_s == value_ids[1].to_s
|
if value_ids[0].to_s == value_ids[1].to_s
|
||||||
puts 'NEXT!!'
|
#puts 'NEXT!!'
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,7 @@ class Observer::Ticket::Notification < ActiveRecord::Observer
|
||||||
# return if we run import mode
|
# return if we run import mode
|
||||||
return if Setting.get('import_mode')
|
return if Setting.get('import_mode')
|
||||||
|
|
||||||
puts 'before_update'
|
#puts 'before_update'
|
||||||
current = record.class.find(record.id)
|
current = record.class.find(record.id)
|
||||||
|
|
||||||
# do not send anything if nothing has changed
|
# do not send anything if nothing has changed
|
||||||
|
|
Loading…
Reference in a new issue