Fixes Issue #96 to always log failures.
This commit is contained in:
parent
462fcfb274
commit
6459bd93d0
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user