Skip to content

Instantly share code, notes, and snippets.

@mojombo mojombo/logleak.rb

Created Jul 25, 2008
Embed
What would you like to do?
require 'logger'
log = Logger.new(STDOUT)
threads = []
10.times do
threads << Thread.new do
loop do
log.info("foo")
end
end
end
threads.each { |t| t.join }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.