def source_change(change, filename)
      if File.exist?(filename)
        case change
        when :started
          @sources[filename] = RequestLogAnalyzer::Database::Source.create!(filename: filename)
        when :finished
          @sources[filename].update_attributes!(filesize: File.size(filename), mtime: File.mtime(filename))
        end
      end
    end
def source_change(change, filename)
      if File.exist?(filename)
        case change
        when :started
          @sources[filename] = RequestLogAnalyzer::Database::Source.create!(filename: filename)
        when :finished
          @sources[filename].update_attributes!(filesize: File.size(filename), mtime: File.mtime(filename))
        end
      end
    end
Records source changes in the sources table