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:
parent
1c51f40d02
commit
b8d7093c47
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user