Added missing DEBUG condition on console.log