Fixes Issue #96 to always log failures.

This commit is contained in:
Peter Goodman 2018-08-08 12:42:48 -04:00
parent 462fcfb274
commit 6459bd93d0

View File

@ -40,11 +40,10 @@ class Stream {
DEEPSTATE_INLINE ~Stream(void) {
if (do_log) {
if (has_something_to_log) {
DeepState_LogStream(level);
} else {
DeepState_ClearStream(level);
if (!has_something_to_log) {
DeepState_StreamCStr(level, "Condition failed");
}
DeepState_LogStream(level);
}
}