From: Ian Jackson Date: Sun, 17 May 2009 09:32:27 +0000 (+0100) Subject: Optionally much more debugging output for chat log tracker X-Git-Tag: 1.0~40 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=8ebb23fcb201abe4afc25a4f28f510e435443bc2 Optionally much more debugging output for chat log tracker --- diff --git a/yoweb-scrape b/yoweb-scrape index 43b9522..04e392d 100755 --- a/yoweb-scrape +++ b/yoweb-scrape @@ -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()