Last active
December 21, 2018 16:58
-
-
Save marzdgzmn/da9c0eb69a6fa9647531e8ffbeecf2eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
at_exit do | |
puts 'sync at_exit' | |
if $ERROR_INFO | |
puts 'yeaah' | |
error = { | |
timestamp: Time.now, | |
message: $ERROR_INFO.message, | |
backtrace: $ERROR_INFO.backtrace, | |
} | |
LOG.error YAML.dump(error) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment