Removed extraneous console.log
Changed log to error