Change console.log to error using debug module.