Method: Labimotion.log_exception
- Defined in:
- lib/labimotion.rb
.log_exception(exception, current_user = nil) ⇒ Object
10 11 12 13 |
# File 'lib/labimotion.rb', line 10 def self.log_exception(exception, current_user = nil) Labimotion.logger.error("version: #{Labimotion::VERSION}; #{Labimotion::IS_RAILS5}, (#{current_user&.id}) \n Exception: #{exception.}") Labimotion.logger.error(exception.backtrace.join("\n")) end |