Skip to content

Commit

Permalink
MINOR: log connect reconfiguration error only if there was an error
Browse files Browse the repository at this point in the history
Author: Gwen Shapira <cshapi@gmail.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes apache#871 from gwenshap/fix-cc-log
  • Loading branch information
gwenshap authored and ewencp committed Feb 4, 2016
1 parent 0a7b20e commit 9b47f9a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,10 @@ public Void call() throws Exception {
new Callback<Void>() {
@Override
public void onCompletion(Throwable error, Void result) {
log.error("Unexpected error during task reconfiguration: ", error);
log.error("Task reconfiguration for {} failed unexpectedly, this connector will not be properly reconfigured unless manually triggered.", connName);
if (error != null) {
log.error("Unexpected error during task reconfiguration: ", error);
log.error("Task reconfiguration for {} failed unexpectedly, this connector will not be properly reconfigured unless manually triggered.", connName);
}
}
}
);
Expand Down

0 comments on commit 9b47f9a

Please sign in to comment.