TDengine/source/libs/sync/test/syncTest.cpp
2022-02-23 09:54:44 +08:00

26 lines
394 B
C++

#include <stdio.h>
#include "syncInt.h"
int main() {
printf("test \n");
syncStartEnv();
char temp[100];
snprintf(temp, 100, "./debug.log");
taosInitLog(temp, 10000, 1);
tsAsyncLog = 0;
for (int i = 0; i < 100; i++) {
sDebug("log:%d -------- \n", i);
}
fflush(NULL);
//taosCloseLog();
while(1) {
sleep(3);
}
return 0;
}