emit limited debug info to the user if not in debug mode. Give name of log file