Skip to content
Snippets Groups Projects
Commit 9a805424 authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

Changed the log message at the starting of cta-taped. If an exception happens,...

Changed the log message at the starting of cta-taped. If an exception happens, the error messages will tell that cta-taped cannot start.
parent 15200724
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ void logStartOfDaemon(cta::log::Logger &log,
std::list<cta::log::Param> params = {cta::log::Param("version", CTA_VERSION)};
params.splice(params.end(), commandLine.toLogParams());
log(log::INFO, "cta-taped started", params);
log(log::INFO, "Starting cta-taped", params);
}
//------------------------------------------------------------------------------
......@@ -236,14 +236,14 @@ int main(const int argc, char **const argv) {
} catch(exception::Exception &ex) {
std::list<cta::log::Param> params = {
cta::log::Param("message", ex.getMessage().str())};
log(log::ERR, "Caught an unexpected CTA exception", params);
log(log::ERR, "Caught an unexpected CTA exception, cta-taped cannot start", params);
sleep(1);
} catch(std::exception &se) {
std::list<cta::log::Param> params = {cta::log::Param("what", se.what())};
log(log::ERR, "Caught an unexpected standard exception", params);
log(log::ERR, "Caught an unexpected standard exception, cta-taped cannot start", params);
sleep(1);
} catch(...) {
log(log::ERR, "Caught an unexpected and unknown exception");
log(log::ERR, "Caught an unexpected and unknown exception, cta-taped cannot start");
sleep(1);
}
......
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