Added traceback for easier error handling.
This commit is contained in:
parent
c12372dd47
commit
0afac1d28c
1 changed files with 1 additions and 0 deletions
|
@ -394,6 +394,7 @@ returns
|
|||
p 'ERROR: ' + e.inspect # rubocop:disable Rails/Output
|
||||
Rails.logger.error message
|
||||
Rails.logger.error 'ERROR: ' + e.inspect
|
||||
Rails.logger.error 'ERROR: ' + e.backtrace.inspect
|
||||
File.open(filename, 'wb') { |file|
|
||||
file.write msg
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue