瀏覽代碼

a log message removed

mom040267 11 年之前
父節點
當前提交
cf93f38218
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/apps/relay/dbdrivers/dbd_sqlite.c

+ 1 - 3
src/apps/relay/dbdrivers/dbd_sqlite.c

@@ -46,9 +46,7 @@ static int sqlite_init_multithreaded(void) {
 
 
 	if (sqlite3_threadsafe() > 0) {
 	if (sqlite3_threadsafe() > 0) {
 		int retCode = sqlite3_config(SQLITE_CONFIG_SERIALIZED);
 		int retCode = sqlite3_config(SQLITE_CONFIG_SERIALIZED);
-		if (retCode == SQLITE_OK) {
-			TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "Can now use sqlite on multiple threads, using the same connection\n");
-		} else {
+		if (retCode != SQLITE_OK) {
 			TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "setting sqlite thread safe mode to serialized failed!!! return code: %d\n", retCode);
 			TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "setting sqlite thread safe mode to serialized failed!!! return code: %d\n", retCode);
 			return -1;
 			return -1;
 		}
 		}