Logging errors to the console can be helpful to find them during debugging/development (as opposed to having them fail silently).
The goal isn't to leave errors in, its to expose them when something changes to make them happen so that you can do the 2 things above.