Supress logging for tests unless an error is hit

Debugging information should not be shown while doing a clean build