Activerecord(1.11.1) and activesupport(1.1.1) currently produce many warnings when they are first loaded, if ruby is running verbose (ruby -w). What is the best way to deal with these warnings for those who do not wish to see them but need to receive other warnings? * Suppress them (by switching off $VERBOSE) during the load of activerecord? * Redirect logging for that component during its load? * ?? I''m using activerecord in a standalone app. Currently, I''m suppressing the production of warnings only during the first load of activerecord, as follows: old_verbose=$VERBOSE $VERBOSE=false require ''active_record'' $VERBOSE=old_verbose Made you wince? As it is really activesupport doing most of the complaining, I was thinking of requiring it separately and silently, using the above mechanism, and then requiring activerecord normally, receiving its few warnings. (My script needn''t otherwise know about the existence of activesupport, but no big deal). That would look like this: #activesupport''s going to complain initially. get it over with, silently. old_verbose=$VERBOSE $VERBOSE=false require ''active_support'' $VERBOSE=old_verbose #...later, require activerecord normally require ''active_record'' This is from breakpoint.rb. same thing, different context: http://dev.rubyonrails.org/file/trunk/railties/lib/breakpoint.rb?rev=425 old_verbose, $VERBOSE = $VERBOSE, nil IRB.setup(ap_path) $VERBOSE = old_verbose More information: Warnings, what warnings? =======================Here are the simplest steps to show the warnings being generated. $gem install activesupport activerecord $ruby -w require_gem ''activerecord'' require ''rubygems'' ^D The majority of warnings today are from inflector.rb: inflector.rb:6: warning: method redefined; discarding old pluralize Is this a known bug? =================== Ticket #1792 says "Rails is not warnings-safe" http://dev.rubyonrails.com/ticket/1792 "ActiveSupport cannot be run with ruby -w. This patch fixes it. There are still some ''method redefined'' warnings, but they are OK because AS is reloading the files." "OK warnings", great :) Context, and why don''t I want to see these messages: =================I''m using activerecord outside of rails. I don''t my users (other programmers) to see these "start-up" warnings, but they should see all other warnings from their own ruby code, and preferably from activerecord and activesupport should they have something important to say. Thanks for any information. Dan