NF: For action execution, log stdout and stderr if debug or cmd error