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:
parent
e5ebff208a
commit
499a74cb8d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue