-
Notifications
You must be signed in to change notification settings - Fork 592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Ice.Trace.Dispatch in C# #3507
Conversation
{ | ||
_instance.initializationData().logger.warning("dispatch exception:\n" + ex); | ||
_instance.initializationData().logger.warning($"executor exception:\n{ex}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of Ice 3.8, dispatch has the same meaning in Ice and IceRPC: the server-side processing of a request.
{ | ||
callback.updated(changes); | ||
} | ||
catch (System.Exception ex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just removed this error handling. The user-supplied callback should not throw any exception, and if it does, it will get logged via Ice.Warn.Dispatch / Ice.Trace.Dispatch.
_logger.warning("properties admin update callback raised unexpected exception:\n" + ex); | ||
} | ||
} | ||
// The callback should not throw any exception. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove these deprecated callbacks (for a separate PR).
This PR implements Ice.Trace.Dispatch in C#.
Sample logging:
The message for dispatch exceptions is now different and shorter.
See #3498.
This PR also add a new property, Ice.Warn.Executor (default = 1), which prints warning when the user-installed executor throws exceptions.