Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
change to debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
gavingaozhangmin committed Nov 8, 2021
1 parent ef03236 commit ccfc9a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ public void open(Configuration parameters) throws Exception {
topic2Producer = new HashMap<>();
}
//super.open(parameters);
if (log.isInfoEnabled()) {
if (log.isDebugEnabled()) {
try {
ObjectMapper m = new ObjectMapper();
ObjectWriter w = m.writerWithDefaultPrettyPrinter();
log.info("Pulsar sink config: {}", w.writeValueAsString(properties));
log.debug("Pulsar sink config: {}", w.writeValueAsString(properties));
} catch (IOException e) {
log.error("Failed to dump sink config info", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ public void open(Configuration parameters) throws Exception {
}
}

if (log.isInfoEnabled()) {
if (log.isDebugEnabled()) {
try {
ObjectMapper m = new ObjectMapper();
ObjectWriter w = m.writerWithDefaultPrettyPrinter();
log.info("Pulsar source config: {}", w.writeValueAsString(properties));
log.debug("Pulsar source config: {}", w.writeValueAsString(properties));
} catch (IOException e) {
log.error("Failed to dump source config info", e);
}
Expand Down

0 comments on commit ccfc9a0

Please sign in to comment.