Skip to content

Commit 65281dc

Browse files
committed
nicer toString for mongooptions
1 parent cf64e3f commit 65281dc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/main/com/mongodb/MongoOptions.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,18 @@ else if (safe)
159159

160160
public String toString(){
161161
StringBuilder buf = new StringBuilder();
162-
buf.append( "connectionsPerHost: " ).append( connectionsPerHost ).append( " " );
163-
buf.append( "threadsAllowedToBlockForConnectionMultiplier: " ).append( threadsAllowedToBlockForConnectionMultiplier ).append( " " );
164-
buf.append( "maxWaitTime: " ).append( maxWaitTime ).append( " " );
165-
buf.append( "connectTimeout: " ).append( connectTimeout ).append( " " );
166-
buf.append( "socketTimeout: " ).append( socketTimeout ).append( " " );
167-
buf.append( "socketKeepAlive: " ).append( socketKeepAlive ).append( " " );
168-
buf.append( "autoConnectRetry: " ).append( autoConnectRetry ).append( " " );
169-
buf.append( "slaveOk: " ).append( slaveOk ).append( " " );
170-
buf.append( "safe: " ).append( safe ).append( " " );
171-
buf.append( "w: " ).append( w ).append( " " );
172-
buf.append( "wtimeout: " ).append( wtimeout ).append( " " );
173-
buf.append( "fsync: " ).append( fsync ).append( " " );
162+
buf.append( "connectionsPerHost=" ).append( connectionsPerHost ).append( ", " );
163+
buf.append( "threadsAllowedToBlockForConnectionMultiplier=" ).append( threadsAllowedToBlockForConnectionMultiplier ).append( ", " );
164+
buf.append( "maxWaitTime=" ).append( maxWaitTime ).append( ", " );
165+
buf.append( "connectTimeout=" ).append( connectTimeout ).append( ", " );
166+
buf.append( "socketTimeout=" ).append( socketTimeout ).append( ", " );
167+
buf.append( "socketKeepAlive=" ).append( socketKeepAlive ).append( ", " );
168+
buf.append( "autoConnectRetry=" ).append( autoConnectRetry ).append( ", " );
169+
buf.append( "slaveOk=" ).append( slaveOk ).append( ", " );
170+
buf.append( "safe=" ).append( safe ).append( ", " );
171+
buf.append( "w=" ).append( w ).append( ", " );
172+
buf.append( "wtimeout=" ).append( wtimeout ).append( ", " );
173+
buf.append( "fsync=" ).append( fsync );
174174

175175
return buf.toString();
176176
}

0 commit comments

Comments
 (0)