test/visit_test.rb in metamri-0.1.5 vs test/visit_test.rb in metamri-0.1.6

- old
+ new

@@ -8,11 +8,11 @@ require 'pathname' require 'logger' class RawImageFileTest < Test::Unit::TestCase DBFILE = '/Users/kris/projects/TransferScans/db/development.sqlite3' - LOG = Logger.new('visit_test.log', shift_age = 7, shift_size = 1048576) + $LOG = Logger.new('visit_test.log', shift_age = 7, shift_size = 1048576) STUDIES = [ # Pathname.new('/Data/vtrak1/raw/alz_2000'), # Pathname.new('/Data/vtrak1/raw/alz_2000'), # Pathname.new('/Data/vtrak1/raw/pib_pilot_mri'), # Pathname.new('/Data/vtrak1/raw/johnson.tbi-va.visit1'), @@ -63,11 +63,11 @@ v.scan v.db_insert!(DBFILE) rescue Exception => e puts "There was a problem scanning a dataset in #{visitdir}... skipping." puts "Exception message: #{e.message}" - LOG.error "There was a problem scanning a dataset in #{visitdir}... skipping." - LOG.error "Exception message: #{e.message}" + $LOG.error "There was a problem scanning a dataset in #{visitdir}... skipping." + $LOG.error "Exception message: #{e.message}" ensure v = nil end end end \ No newline at end of file