Do you use requiredifferent gems in different environments, or can it be IRB itself, which sets the format of the magazine? What happens if you add require 'irb'to your application, it will also change the formatting?
Formatting is stored in a global variable, any gem can override it. I was bitten by a similar problem when I required gem, which in turn is required ActiveRecord, which sets the log format.
It just shows how bad it is to use global variables for configuration, which is too common in Ruby gems.
source
share