This commit is contained in:
zyyang 2021-01-04 16:27:35 +08:00
parent 18812217d3
commit a96e1229f0
3 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ public class TaosDemoApplication {
}
}
end = System.currentTimeMillis();
logger.info(">>> create table time cost : " + (end - start) + " ms.");
logger.error(">>> create table time cost : " + (end - start) + " ms.");
/**********************************************************************************/
// 插入
long tableSize = config.numOfTables;
@ -90,7 +90,7 @@ public class TaosDemoApplication {
// multi threads to insert
int affectedRows = subTableService.insertMultiThreads(superTableMeta, threadSize, tableSize, startTime, gap, config);
end = System.currentTimeMillis();
logger.info("insert " + affectedRows + " rows, time cost: " + (end - start) + " ms");
logger.error("insert " + affectedRows + " rows, time cost: " + (end - start) + " ms");
/**********************************************************************************/
// 删除表
if (config.dropTable) {

View File

@ -15,7 +15,7 @@ spring.datasource.password=taosdata
#spring.datasource.hikari.max-lifetime=0
#logging.level.com.taosdata.taosdemo.dao=error
jdbc.driver=com.taosdata.jdbc.TSDBDriver
jdbc.driver=com.taosdata.jdbc.rs.RestfulDriver
hikari.maximum-pool-size=1
hikari.minimum-idle=1
hikari.max-lifetime=0

View File

@ -1,5 +1,5 @@
### 设置###
log4j.rootLogger=debug,stdout
log4j.rootLogger=error,stdout
### 输出信息到控制抬 ###
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out