Fixing some poor logic on my part with initializing log file.