added logs for error handlers