30 lines
		
	
	
		
			529 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			529 B
		
	
	
	
		
			C++
		
	
	
	
#include "syncTest.h"
 | 
						|
 | 
						|
void logTest() {
 | 
						|
  sTrace("--- sync log test: trace");
 | 
						|
  sDebug("--- sync log test: debug");
 | 
						|
  sInfo("--- sync log test: info");
 | 
						|
  sWarn("--- sync log test: warn");
 | 
						|
  sError("--- sync log test: error");
 | 
						|
  sFatal("--- sync log test: fatal");
 | 
						|
}
 | 
						|
 | 
						|
int main() {
 | 
						|
  // taosInitLog((char *)"syncTest.log", 100000, 10);
 | 
						|
  tsAsyncLog = 0;
 | 
						|
  sDebugFlag = 143 + 64;
 | 
						|
 | 
						|
  logTest();
 | 
						|
 | 
						|
  int32_t ret;
 | 
						|
 | 
						|
  ret = syncIOStart((char *)"127.0.0.1", 7030);
 | 
						|
  assert(ret == 0);
 | 
						|
 | 
						|
  while (1) {
 | 
						|
    taosSsleep(1);
 | 
						|
  }
 | 
						|
 | 
						|
  return 0;
 | 
						|
}
 |