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) { DEEPSTATE_INLINE ~Stream(void) {
if (do_log) { if (do_log) {
if (has_something_to_log) { if (!has_something_to_log) {
DeepState_LogStream(level); DeepState_StreamCStr(level, "Condition failed");
} else {
DeepState_ClearStream(level);
} }
DeepState_LogStream(level);
} }
} }