Skip to content
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

Report error when writing event log header #1407

Closed
skliper opened this issue Apr 22, 2021 · 0 comments · Fixed by #2272
Closed

Report error when writing event log header #1407

skliper opened this issue Apr 22, 2021 · 0 comments · Fixed by #2272

Comments

@skliper
Copy link
Contributor

skliper commented Apr 22, 2021

Is your feature request related to a problem? Please describe.
The return from CFE_FS_WriteHeader is checked when writing the event log header, but there's no event sent on error (it just returns CFE_EVS_FILE_WRITE_ERROR):

/* Write the file header to the log file */
BytesWritten = CFE_FS_WriteHeader(LogFileHandle, &LogFileHdr);
if (BytesWritten == sizeof(LogFileHdr))

Describe the solution you'd like
Send an event to help narrow down the issue.

Describe alternatives you've considered
None

Additional context
Code review

Requester Info
Jacob Hageman - NASA/GSFC

github-actions bot pushed a commit that referenced this issue Jun 8, 2023
…og-header-write-fail

Fix #1407, Add error report on EVS failure during log header write
@dzbaker dzbaker closed this as completed in 4eeba08 Jun 8, 2023
@dzbaker dzbaker added this to the Equuleus milestone Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants