@@ -39,9 +39,6 @@ class MongoDBReadableResource : public ResourceBase {
39
39
// Required to initialize libmongoc's internals
40
40
mongoc_init ();
41
41
42
- // Log the uri
43
- LOG (INFO) << " Connecting to: " << uri;
44
-
45
42
// Create a MongoDB URI object from the given string
46
43
47
44
uri_obj_ = mongoc_uri_new_with_error (uri.c_str (), &error_);
@@ -128,7 +125,7 @@ class MongoDBReadableResource : public ResourceBase {
128
125
return errors::FailedPrecondition (
129
126
" Failed to ping the mongo cluster due to: " , error_.message );
130
127
}
131
- LOG (ERROR ) << " Ping Successful " ;
128
+ LOG (INFO ) << " MongoDB connection ping successful " ;
132
129
133
130
return Status::OK ();
134
131
}
@@ -222,9 +219,6 @@ class MongoDBWritableResource : public ResourceBase {
222
219
// Required to initialize libmongoc's internals
223
220
mongoc_init ();
224
221
225
- // Log the uri
226
- LOG (INFO) << " Connecting to: " << uri;
227
-
228
222
// Create a MongoDB URI object from the given string
229
223
230
224
uri_obj_ = mongoc_uri_new_with_error (uri.c_str (), &error_);
@@ -308,7 +302,7 @@ class MongoDBWritableResource : public ResourceBase {
308
302
return errors::FailedPrecondition (
309
303
" Failed to ping the mongo cluster due to: " , error_.message );
310
304
}
311
- LOG (INFO) << " Ping Successful " ;
305
+ LOG (INFO) << " MongoDB connection ping successful " ;
312
306
313
307
return Status::OK ();
314
308
}
0 commit comments