]> git.cworth.org Git - sup/commitdiff
more logging
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 3 Jan 2007 06:40:41 +0000 (06:40 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 3 Jan 2007 06:40:41 +0000 (06:40 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@153 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/mbox/loader.rb

index 22518ca92a4b127a749b93374f8a4364eb1d2af7..4013d4d9f43b167c25920cbfb4668e4382921dec 100644 (file)
@@ -37,6 +37,7 @@ class Loader < Source
       @f.seek offset
       l = @f.gets
       unless l =~ BREAK_RE
+        Redwood::log "#{to_s}: offset mismatch in mbox file offset #{offset.inspect}: #{l.inspect}"
         self.broken_msg = "offset mismatch in mbox file offset #{offset.inspect}: #{l.inspect}. Run 'sup-import --rebuild #{to_s}' to correct this." 
         raise SourceError, self.broken_msg
       end