Skip to content

Change log level for Configuration #33

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Sep 22, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/org/embulk/input/hdfs/ConfigurationFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static Configuration create(Task task)
Configuration c = new Configuration();
for (String f : task.getConfigFiles()) {
try {
logger.debug("embulk-input-hdfs: load a config file: {}", f);
logger.trace("embulk-input-hdfs: load a config file: {}", f);
c.addResource(new File(f).toURI().toURL());
}
catch (MalformedURLException e) {
Expand All @@ -45,15 +45,15 @@ public static Configuration create(Task task)
}

for (Map.Entry<String, String> entry : task.getConfig().entrySet()) {
logger.debug("embulk-input-hdfs: load a config: {}:{}", entry.getKey(), entry.getValue());
logger.trace("embulk-input-hdfs: load a config: {}:{}", entry.getKey(), entry.getValue());
c.set(entry.getKey(), entry.getValue());
}

// For logging
for (Map.Entry<String, String> entry : c) {
logger.trace("embulk-input-hdfs: {}: {}", entry.getKey(), entry.getValue());
logger.trace("embulk-input-hdfs: loaded: {}: {}", entry.getKey(), entry.getValue());
}
logger.trace("embulk-input-hdfs: Resource Files: {}", c);
logger.trace("embulk-input-hdfs: loaded files: {}", c);

return c;
}
Expand Down