log instead of displaying error