post-review: show debugging output even before options are parsed if enabled in-source
Review Request #519 — Created Aug. 31, 2008 and submitted — Latest diff uploaded
While trying to debug post-review, I noticed that debug() fails to produce output before the command-line options have been parsed--even if you modify the code to set 'DEBUG' to True. This patch checks DEBUG in addition to the command line argument.
Ran it (and saw debugging output prior to option parsing) - Ubuntu 8.04 32-bit