diff options
Diffstat (limited to 's/config.cpp')
-rw-r--r-- | s/config.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/s/config.cpp b/s/config.cpp index 65f56cb..e1016a0 100644 --- a/s/config.cpp +++ b/s/config.cpp @@ -653,7 +653,13 @@ namespace mongo { BSONObj msg = BSON( "_id" << id.str() << "server" << getHostNameCached() << "time" << DATENOW << "what" << what << "ns" << ns << "details" << detail ); log() << "config change: " << msg << endl; - conn->insert( "config.changelog" , msg ); + + try { + conn->insert( "config.changelog" , msg ); + } + catch ( std::exception& e ){ + log() << "not logging config change: " << e.what() << endl; + } conn.done(); } |