public void OnException(ExceptionContext filterContext) { // Only log handled exceptions. Appfail will catch all unhandled exceptions anyway. if (filterContext.ExceptionHandled) { filterContext.Exception.SendToAppfail(); } } }