Skip to content

Commit 960e825

Browse files
author
Brendan W. McAdams
committed
Strip debugging.
1 parent c77d478 commit 960e825

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/com/mongodb/ReplicaSetStatus.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ public boolean isMaster(ServerAddress srv) {
131131
*/
132132
ServerAddress getASecondary( DBObject tags ){
133133
for ( String key : tags.keySet() ) {
134-
System.err.println( "Searching for a secondary with tag " + key + " = " + tags.get( key ) );
135134
ServerAddress secondary = getASecondary( key, tags.get( key ).toString() );
136-
System.err.println( "Secondary retrieved: " + secondary );
137135
if (secondary != null)
138136
return secondary;
139137
}
@@ -166,12 +164,9 @@ ServerAddress getASecondary( String tagKey, String tagValue ){
166164
Node n = _all.get( ( start + i ) % _all.size() );
167165

168166
if ( ! n.secondary() ){
169-
System.err.println( " not a secondary: " + n );
170167
mybad++;
171168
continue;
172169
} else if (tagKey != null && !n.checkTag( tagKey, tagValue )){
173-
System.err.println( " Doesn't have tag " + tagKey + " = " + tagValue
174-
+ " ... " + n);
175170
mybad++;
176171
continue;
177172
}

0 commit comments

Comments
 (0)