Skip to content

Commit dc743c0

Browse files
committed
Merge pull request #12 from sonots/log_level_debug
Log level debug
2 parents 44323b1 + 860d1af commit dc743c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/main/java/org/embulk/input/hdfs/HdfsFileInputPlugin.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public ConfigDiff transaction(ConfigSource config, FileInputPlugin.Control contr
8181
}
8282

8383
task.setFiles(allocateHdfsFilesToTasks(task, getFs(task), originalFileList));
84-
logger.info("Loading target files: {}", originalFileList);
84+
logger.info("embulk-input-hdfs: Loading target files: {}", originalFileList);
8585
}
8686
catch (IOException e) {
8787
logger.error(e.getMessage());
@@ -90,13 +90,13 @@ public ConfigDiff transaction(ConfigSource config, FileInputPlugin.Control contr
9090

9191
// log the detail of partial files.
9292
for (HdfsPartialFile partialFile : task.getFiles()) {
93-
logger.info("target file: {}, start: {}, end: {}",
93+
logger.debug("embulk-input-hdfs: target file: {}, start: {}, end: {}",
9494
partialFile.getPath(), partialFile.getStart(), partialFile.getEnd());
9595
}
9696

9797
// number of processors is same with number of targets
9898
int taskCount = task.getFiles().size();
99-
logger.info("task size: {}", taskCount);
99+
logger.info("embulk-input-hdfs: task size: {}", taskCount);
100100

101101
return resume(task.dump(), taskCount, control);
102102
}
@@ -259,7 +259,7 @@ public Path apply(@Nullable String input)
259259
for (Path path : pathList) {
260260
int fileLength = (int) fs.getFileStatus(path).getLen(); // declare `fileLength` here because this is used below.
261261
if (fileLength <= 0) {
262-
logger.info("Skip the 0 byte target file: {}", path);
262+
logger.info("embulk-input-hdfs: Skip the 0 byte target file: {}", path);
263263
continue;
264264
}
265265

0 commit comments

Comments
 (0)