TypeCobol is an Incremental Cobol parser for IBM Enterprise Cobol 6 for zOS syntax. TypeCobol is also an extension of Cobol 85 language which can then be converted to Cobol85.
As seen in our builds, some logs seem to be dropped while the application, and consequently the LoggingSystem, is exiting.
To fix that:
in LoggerThread.AddWork: add logging action only when _stop flag is false and throw an exception when it is true
This should be fine with our current use as we never had a failure on the Debug.Assert(!_stop);
in LoggerThread.Stop: at the end check whether the queue is empty or not. If some logging actions are still pending, use current thread to perform them
As seen in our builds, some logs seem to be dropped while the application, and consequently the
LoggingSystem
, is exiting.To fix that:
LoggerThread.AddWork
: add logging action only when_stop
flag is false and throw an exception when it is trueDebug.Assert(!_stop);
LoggerThread.Stop
: at the end check whether the queue is empty or not. If some logging actions are still pending, use current thread to perform them