lib/ctioga2/data/backends/backends.rb in ctioga2-0.2 vs lib/ctioga2/data/backends/backends.rb in ctioga2-0.3

- old
+ new

@@ -15,10 +15,11 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 # USA require 'ctioga2/data/backends/backend' +require 'ctioga2/log' # We try to look for all files under a ctioga2/metabuilder/types # directory anywhere on the $: path files = [] @@ -31,9 +32,9 @@ for file in files.uniq begin require "ctioga2/data/backends/backends/#{file}" rescue Exception => e - warn { "There was a problem trying to load 'ctioga2/data/backends/backends/#{file}': " } - warn { "#{e.inspect}" } + CTioga2::Log::warn { "There was a problem trying to load 'ctioga2/data/backends/backends/#{file}': " } + CTioga2::Log::warn { "#{e.inspect}" } end end