Quiet logging in test output when not in debug mode
Also fixes a couple logging calls that caused exceptions to be printed.
Hello! We are running our annual fundraising. Please consider making a donation if you value this freely available service or want to support people around the world working towards liberatory social change - https://riseup.net/donate
Also fixes a couple logging calls that caused exceptions to be printed.