When two threads go through this method, it's possible to permanently set the log level to ERROR at the end of execution of both blocks. Here's a testcase to reproduce this.
I should mention that this is reproducible with rails 3.1.3 and 3.2RC1.
Any thoughts on this?
Due to its lack of thread safety, we're deprecating this, and it
will be removed in Rails 4.1.