Disabled debugging output with console.log

fixes #4864