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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user