Onlyif return codes added to debug log

References: #11879