Skip to content

Commit

Permalink
less verbosity on startup (especially about DB passwords ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
kzangeli committed Dec 15, 2022
1 parent a3199e8 commit 9173267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/lib/orionld/common/orionldState.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extern "C"
//
// ORIONLD_VERSION -
//
#define ORIONLD_VERSION "1.1.1"
#define ORIONLD_VERSION "1.1.2"



Expand Down
14 changes: 1 addition & 13 deletions src/lib/orionld/mongoc/mongocInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,6 @@ static char* uriCompose
char* compV[50];
int compNo = 0;

LM(("dbURI: '%s'", dbURI));
LM(("dbHost: '%s'", dbHost));
LM(("dbUser: '%s'", dbUser));
LM(("dbPwd: '%s'", dbPwd));
LM(("dbAuthDb: '%s'", dbAuthDb));
LM(("dbReplicaSet: '%s'", dbReplicaSet));
LM(("dbAuthMechanism: '%s'", dbAuthMechanism));
LM(("dbSSL: '%s'", (dbSSL == true)? "true" : "false"));
LM(("tlsCertificate: '%s'", tlsCertificateFilePath));


if (dbURI[0] != 0)
{
//
Expand Down Expand Up @@ -247,7 +236,6 @@ static char* uriCompose
len += strlen(compV[ix]);
}

LM(("mongo uri: %s", uri));
return uri;
}

Expand Down Expand Up @@ -286,7 +274,7 @@ void mongocInit
char* mongoUri = uriCompose(dbURI, dbHost, dbUser, dbPwd, dbAuthDb, dbReplicaSet, dbAuthMechanism, dbSSL, tlsCertificateFilePath);
bson_error_t mongoError;

LM_K(("Connecting to mongo for the C driver, with URI '%s'", mongoUri));
LM_K(("Connecting to mongo using the C driver (mongoc)"));
mongocUri = mongoc_uri_new_with_error(mongoUri, &mongoError);
if (mongocUri == NULL)
LM_X(1, ("Unable to connect to mongo(URI: %s): %s", mongoUri, mongoError.message));
Expand Down

0 comments on commit 9173267

Please sign in to comment.