re-enable filtering logs before callback/ocall for enclave logs. This would bring it to be in parity with host logging functionality.
@@ -149,13 +149,6 @@ static oe_result_t _log_enclave_message(
}
else
{
- // Check if this message should be skipped
- if (level > _active_log_level)
- {
- result = OE_OK;
- goto done;
- }
-
if ((result = oe_log_ocall(level, message)) != OE_OK)
goto done;
}
@@ -181,6 +174,13 @@ oe_result_t oe_log(oe_log_level_t level, const char* fmt, ...)
goto done;
}
+ // Check if this message should be skipped
+ if (level > _active_log_level)
+ {
+ result = OE_OK;
+ goto done;
+ }
+
// Validate input
if (!fmt)
{
