From 01b712fbfd43c7037b105298bfadebbc0077d6e6 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Tue, 25 Oct 2022 19:11:28 +0800 Subject: [PATCH] refactor(sync): add trace log --- source/libs/sync/src/syncMain.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index 29c82bcd8c..6496beea93 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -2790,6 +2790,12 @@ static void syncNodeEqElectTimer(void* param, void* tmrId) { syncTimeoutDestroy(pSyncMsg); return; } + + do { + char logBuf[128]; + snprintf(logBuf, sizeof(logBuf), "eq elect timer lc:%ld", pSyncMsg->logicClock); + } while (0); + } else { sTrace("syncNodeEqElectTimer FpEqMsg is NULL"); } -- GitLab