Fixed logger namespace.
This commit is contained in:
parent
a969242ada
commit
e0c7e91fd6
2 changed files with 7 additions and 7 deletions
|
@ -111,8 +111,8 @@ 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')
|
||||||
|
|
||||||
# logger.info 'CREATED!!!!'
|
# Rails.logger.info 'CREATED!!!!'
|
||||||
# logger.info record.inspect
|
# Rails.logger.info record.inspect
|
||||||
e = {
|
e = {
|
||||||
name: record.class.name,
|
name: record.class.name,
|
||||||
type: 'create',
|
type: 'create',
|
||||||
|
@ -163,10 +163,10 @@ 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')
|
||||||
|
|
||||||
# logger.info 'after_update'
|
# Rails.logger.info 'after_update'
|
||||||
# logger.info record.inspect
|
# Rails.logger.info record.inspect
|
||||||
# logger.info '-----'
|
# Rails.logger.info '-----'
|
||||||
# logger.info @a.inspect
|
# Rails.logger.info @a.inspect
|
||||||
# AuditTrail.new(record, "UPDATED")
|
# AuditTrail.new(record, "UPDATED")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -117,7 +117,7 @@ class Observer::Ticket::Notification::BackgroundJob
|
||||||
notification[:subject] = ticket.subject_build( notification[:subject] )
|
notification[:subject] = ticket.subject_build( notification[:subject] )
|
||||||
|
|
||||||
# send notification
|
# send notification
|
||||||
logger.info "send ticket notifiaction to agent (#{@p[:type]}/#{ticket.id}/#{user.email})"
|
Rails.logger.info "send ticket notifiaction to agent (#{@p[:type]}/#{ticket.id}/#{user.email})"
|
||||||
|
|
||||||
NotificationFactory.send(
|
NotificationFactory.send(
|
||||||
recipient: user,
|
recipient: user,
|
||||||
|
|
Loading…
Reference in a new issue