Log to a file instead of spewing random print statements