Or perhaps Twisted's .flushLoggedErrors().