The patch also logs all commands executed from RunCmd when we are at debug level. Reviewed-by: imsnah