chiark / gitweb /
Optionally much more debugging output for chat log tracker
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 17 May 2009 09:32:27 +0000 (10:32 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sun, 17 May 2009 09:32:27 +0000 (10:32 +0100)
yoweb-scrape

index 43b9522..04e392d 100755 (executable)
@@ -677,6 +677,8 @@ class ChatLogTracker:
                        if self._lbuf.endswith('\n'):
                                self.chatline(self._lbuf.rstrip())
                                self._lbuf = ''
+                               if opts.debug >= 2:
+                                       debug(self.__str__())
                if progress: progress.caughtup()
 
        def changed(self):
@@ -759,9 +761,9 @@ def prep_chat_log(args, bu,
        progress.show_init(pirate, fetcher.ocean)
        track = ChatLogTracker(myself, logfn)
 
-       opts.debug -= 1
+       opts.debug -= 2
        track.catchup(progress)
-       opts.debug += 1
+       opts.debug += 2
 
        track.force_redisplay()