You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/02/18 09:26:34 UTC
[GitHub] [iotdb] HTHou commented on a change in pull request #5070: [IOTDB-2511]Change import-csv-tool feedback from synchronous to asynchronous
HTHou commented on a change in pull request #5070:
URL: https://github.com/apache/iotdb/pull/5070#discussion_r809817054
##########
File path: cli/src/main/java/org/apache/iotdb/tool/ImportCsv.java
##########
@@ -360,9 +364,15 @@ private static void writeDataAlignedByTime(
if (type != null) {
headerTypeMap.put(header, type);
} else {
- System.out.printf(
- "Line '%s', column '%s': '%s' unknown type%n",
- record.getRecordNumber(), header, value);
+ logger.error(
+ new StringBuilder("Line '")
+ .append(record.getRecordNumber())
+ .append("', column '")
+ .append(header)
+ .append("': '")
+ .append(value)
+ .append("' unknown type")
+ .toString());
Review comment:
Hi, I think we can use
```java
logger.error("Line {}, column {}: {} unknown type", record.getRecordNumber(), header, value);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org