-
Notifications
You must be signed in to change notification settings - Fork 204
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
Fix #846, Deconflict CFE_ES_LIB_ALREADY_LOADED and CFE_ES_ERR_SYS_LOG_TRUNCATED #872
Fix #846, Deconflict CFE_ES_LIB_ALREADY_LOADED and CFE_ES_ERR_SYS_LOG_TRUNCATED #872
Conversation
Just realized these aren't EIDs... error codes. I'll fix commit. |
CFE_ES_LIB_ALREADY_LOADED and CFE_ES_ERR_SYS_LOG_TRUNCATED
d01b1bf
to
7adc055
Compare
See also #616, seems to be a duplicate |
Should the value start with 0xC, to indicate that this return value is an error? |
I left them with the "Informational" severity code, this change just deconflicts. I'd recommend severity code changes be a new issue if you want to re-evaluate them. |
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 might want to open a new issue to discuss changing this value to be an error type (start with 0xC instead of 0x4).
See also #483 for the general ticket. |
My take is that the log getting truncated isn't really an error - its informational - because the message WAS logged. An error code should indicate no action was performed. That's so the caller has a recourse - they can check for the error, and do some sort of mitigation, possibly re-try the call. In this situation - its not like anyone can take useful action on this response - code is not going to check for this condition and log a shorter message or something. (which would end up as a duplicate too). So eventually (and in line with #483) we should get rid of |
FWIW - in the framework I see 278 references to (Which makes sense when you think about it, because we wouldn't expect a CFS app to handle system-level issues like a broken syslog - it isn't its domain). |
I looked at this from a different perspective. It seems like CFE_ES_ERR_SYS_LOG_TRUNCATED was created to tell the calling app that the app was using the syslog wrong, and the function call didn't work as expected. I wouldn't consider this to mean that syslog was broken, I'd consider that to be an app error, and I'd expect CFE_ES_WriteToSysLog() to return some type of non-CFE_SUCCESS code if an app used the API incorrectly. It would be great if 0x2 was used to indicate a warning, or something like that. |
I see this as a case where the app invoked At any rate, happy to discuss the philosophy around error codes further in #483 .... should probably transition discussion over there ... |
Describe the contribution
Fix #846 - deconflict CFE_ES_LIB_ALREADY_LOADED and CFE_ES_ERR_SYS_LOG_TRUNCATED EIDs
Testing performed
Built and ran unit tests (checks both those returns), passed.
Expected behavior changes
EIDs no longer overloaded.
System(s) tested on
Additional context
None
Third party code
None
Contributor Info - All information REQUIRED for consideration of pull request
Jacob Hageman - NASA/GSFC