0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

rs better logging

This commit is contained in:
dwight 2010-08-17 10:19:40 -04:00
parent 1c51f40d02
commit b8d7093c47

View File

@ -139,9 +139,14 @@ namespace mongo {
}
}
} catch(std::exception& e) {
log() << "Server::doWork() exception " << e.what() << endl;
} catch(...) {
log() << "Server::doWork() unknown exception!" << endl;
log() << "Server::doWork task:" << name() << " exception:" << e.what() << endl;
}
catch(const char *p) {
log() << "Server::doWork task:" << name() << " unknown c exception:" <<
((p&&strlen(p)<800)?p:"?") << endl;
}
catch(...) {
log() << "Server::doWork unknown exception task:" << name() << endl;
}
}
}