Fixing a minor logging mixup

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1049281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2010-12-14 21:20:32 +00:00
parent e5ebff208a
commit 499a74cb8d
1 changed files with 4 additions and 3 deletions

View File

@ -629,11 +629,12 @@ public class ReplicationSource extends Thread
public void terminate(String reason, Exception cause) {
if (cause == null) {
LOG.error("Closing source " + this.peerClusterZnode
+ " because an error occurred: " + reason, cause);
} else {
LOG.info("Closing source "
+ this.peerClusterZnode + " because: " + reason);
} else {
LOG.error("Closing source " + this.peerClusterZnode
+ " because an error occurred: " + reason, cause);
}
this.running = false;
Threads.shutdown(this, this.sleepForRetries);