Report only errors preventing requested operations from completing to the standard error stream

Issue #9 closed
StoneSteps repo owner created an issue

The standard error stream should be used only to report errors that prevent SSW from completing the requested operation, such as that the specified log file was not found or the state database could not be opened, and not for intermediate warnings and errors, such as reporting malformed log records.

Everything reported to the standard error stream should be self-explanatory and should not depend on text reported to the standard output. For example, bad log records are currently reported without any context and it is not possible to figure out when they were reported or which log file they are coming from:

Skipping bad record (114922)

Errors reported to the standard error stream should be accompanied by a process exit status code indicating that some error occurred.

Comments (4)

  1. Log in to comment