Fix compile error for !send-to-logger

If `send-to-logger` is disabled, the code fails to compile due to the
previous refactor for clang-tidy.

Tested: Verify the CI passes for both send-to-logger is defined or not
        defined.

Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Ifed296c9ac4890171b09325404d1c797923d61f4
diff --git a/src/sel_logger.cpp b/src/sel_logger.cpp
index 5e7e02a..9dae3af 100644
--- a/src/sel_logger.cpp
+++ b/src/sel_logger.cpp
@@ -114,7 +114,7 @@
     }
 }
 
-static uint16_t getNewRecordId()
+uint16_t getNewRecordId()
 {
     uint16_t nextRecordId = nextRecordsCache.back();
     // Check if SEL is full