Module: Rpush::Daemon::Loggable
- Included in:
- Apns::FeedbackReceiver, AppRunner, AppRunner, Delivery, Dispatcher::ApnsTcp, DispatcherLoop, Synchronizer, TcpConnection
- Defined in:
- lib/rpush/daemon/loggable.rb
Instance Method Summary collapse
Instance Method Details
#log_error(e) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/rpush/daemon/loggable.rb', line 12 def log_error(e) if e.is_a?(Exception) Rpush.logger.error(e) else Rpush.logger.error(app_prefix(e)) end end |