Module: Rpush::Daemon::Loggable
- Included in:
- AppRunner, AppRunner, Batch, Delivery, Dispatcher::ApnsHttp2, Dispatcher::Apnsp8Http2, DispatcherLoop, Feeder, GoogleCredentialCache, Rpc::Server, SignalHandler, Synchronizer
- Defined in:
- lib/rpush/daemon/loggable.rb
Instance Method Summary collapse
Instance Method Details
#log_debug(msg) ⇒ Object
4 5 6 |
# File 'lib/rpush/daemon/loggable.rb', line 4 def log_debug(msg) Rpush.logger.debug(app_prefix(msg)) end |
#log_error(e) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rpush/daemon/loggable.rb', line 16 def log_error(e) if e.is_a?(Exception) Rpush.logger.error(e) else Rpush.logger.error(app_prefix(e)) end end |