remove debug code

usage of console
Merge pull request #161359 from mauk81/patch-6

remove debug code