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 Setting.get('import_mode')
|
||||
|
||||
# logger.info 'CREATED!!!!'
|
||||
# logger.info record.inspect
|
||||
# Rails.logger.info 'CREATED!!!!'
|
||||
# Rails.logger.info record.inspect
|
||||
e = {
|
||||
name: record.class.name,
|
||||
type: 'create',
|
||||
|
@ -163,10 +163,10 @@ class Observer::Ticket::Notification < ActiveRecord::Observer
|
|||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
# logger.info 'after_update'
|
||||
# logger.info record.inspect
|
||||
# logger.info '-----'
|
||||
# logger.info @a.inspect
|
||||
# Rails.logger.info 'after_update'
|
||||
# Rails.logger.info record.inspect
|
||||
# Rails.logger.info '-----'
|
||||
# Rails.logger.info @a.inspect
|
||||
# AuditTrail.new(record, "UPDATED")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -117,7 +117,7 @@ class Observer::Ticket::Notification::BackgroundJob
|
|||
notification[:subject] = ticket.subject_build( notification[:subject] )
|
||||
|
||||
# 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(
|
||||
recipient: user,
|
||||
|
|
Loading…
Reference in a new issue