hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1049281 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
Date Tue, 14 Dec 2010 21:20:32 GMT
Author: jdcryans
Date: Tue Dec 14 21:20:32 2010
New Revision: 1049281

URL: http://svn.apache.org/viewvc?rev=1049281&view=rev
Log:
Fixing a minor logging mixup


Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java?rev=1049281&r1=1049280&r2=1049281&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
(original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSource.java
Tue Dec 14 21:20:32 2010
@@ -629,11 +629,12 @@ public class ReplicationSource extends T
 
   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);



Mime
View raw message