Replace console.log with _warn