diff --git a/app/models/observer/ticket/notification.rb b/app/models/observer/ticket/notification.rb index ab68d27d8..f46bfe485 100644 --- a/app/models/observer/ticket/notification.rb +++ b/app/models/observer/ticket/notification.rb @@ -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 diff --git a/app/models/observer/ticket/notification/background_job.rb b/app/models/observer/ticket/notification/background_job.rb index 917345c48..502ccadba 100644 --- a/app/models/observer/ticket/notification/background_job.rb +++ b/app/models/observer/ticket/notification/background_job.rb @@ -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,