Refine logging for run command in CommandUtils