Add logging and timer around pygments.highlight call when generating diffs.
Review Request #2180 — Created March 3, 2011 and discarded — Latest diff uploaded
We've seen a few cases where pygments spins forever and never returns. After looking at our logs, 5 seconds was about the longest it was taking to highlight anything so I put the timer at 10 seconds.
Our review board instance has been running with this patch for a few weeks now.