deploy_extra_log: Fixing bugs related to log process.