testing mode needs this.
Merge pull request #69 from smallredbean/yalinh_logging_fix_for_testing

Add back in logging to main