Skip to content
Snippets Groups Projects
Commit b0b7215f authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add hint with what to do to warning

parent 4503f698
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,11 @@ namespace armarx::armem::ltm
// Check connection:
if (!MongoDBConnectionManager::ConnectionIsValid(dbsettings))
{
ARMARX_WARNING << deactivateSpam("ConnectionIsNotValid") << "The connection to mongocxx for memory '" << name() << "' is not valid. Settings are: " << dbsettings.toString();
ARMARX_WARNING << deactivateSpam("ConnectionIsNotValid")
<< "The connection to mongocxx for memory '" << name() << "' is not valid. Settings are: " << dbsettings.toString()
<< "\nTo start it, run e.g.: \n"
<< "mongod --port " << dbsettings.port << " --dbpath \"/tmp/\""
<< "\n\n";
return false;
}
ARMARX_INFO << "Checking connection";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment