Add error handler and request logger
log error messages with console.error