Created
August 16, 2018 13:21
-
-
Save pocke/09cd1d2c283a9effc35ca929ac38fed4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def log(msg) | |
puts "[#{Time.now}]: #{msg}" | |
end | |
log 'start' | |
big_str = 'a' * 500_000_000 | |
log 'prepared' | |
begin | |
big_str.a | |
rescue => ex | |
log 'rescued' | |
ex.message | |
log 'message' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment