On Thu, Apr 26, 2018 at 5:11 PM, Fleming, Thadeus thadeus.fleming@odysseysr.com wrote:
It's clear that CFE_ES_RegisterApp is supposed to be the first CFE
function an app calls, and that the app shouldn't continue if the call
fails.
However, it's not clear whether it's kosher to call
CFE_ES_WriteToSysLog to log failure of CFE_ES_RegisterApp. It appears
to be both safe (the function source doesn't look at the app's entry
in the AppTable) and common practice (e.g. the gen_app_code app
template does it).
I'd suggest that apps be allowed to call WriteToSysLog when
RegisterApp fails, and that the practice is documented so that future
versions of cFE don't modify WriteToSysLog in such a way that it would
become a problem.