Test and fix for issue #143 - parse logging adds a StreamHandler

This commit ensures that setup_capture() is called before the parse library
has a chance to log anything.