Fix console log to console info or error

Replace the console.log with console.error or console.info when usefull.