Log middleware name in errors