From 32f843db0886b4eaa0b96283eb2009c1303f71bb Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Fri, 10 Feb 2023 23:30:59 +0800 Subject: [PATCH] Update WS logs Add ws prefix for easy filtering. --- src/packages/log/IZ_intercept.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/packages/log/IZ_intercept.c b/src/packages/log/IZ_intercept.c index 57171e3..9b824dd 100644 --- a/src/packages/log/IZ_intercept.c +++ b/src/packages/log/IZ_intercept.c @@ -56,20 +56,20 @@ void IZ_LogInterceptHandleFromWS(i32 level, const char* line) { switch (level) { // TODO level is a bit field...check if each level is OR'd. case LLL_ERR: - IZ_LogError("%s", buffer); + IZ_LogError("ws %s", buffer); return; case LLL_WARN: - IZ_LogWarn(false, "%s", buffer); + IZ_LogWarn(false, "ws %s", buffer); return; case LLL_NOTICE: - IZ_LogInfo(IZ_LOG_CATEGORY_GENERIC, "%s", buffer); + IZ_LogInfo(IZ_LOG_CATEGORY_GENERIC, "ws %s", buffer); return; case LLL_USER: default: break; } - IZ_Log("%s", buffer); + IZ_Log("ws %s", buffer); } void IZ_LogInterceptWSMessages(i32 level) {