logging. clear tmp