Adjust logging to be less verbose unless in debug mode