summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Service.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2012-10-22 12:56:41 -0400
committerBernard Normier <bernard@zeroc.com>2012-10-22 12:56:41 -0400
commitf1b727794617cc064d3aabee1e981cd4dcd07051 (patch)
treed4c18e607ad7059de11c06dd096dd28ee1f508f6 /cpp/src/IceStorm/Service.cpp
parentMerge branch 'master' of ssh://git/home/git/ice (diff)
downloadice-f1b727794617cc064d3aabee1e981cd4dcd07051.tar.bz2
ice-f1b727794617cc064d3aabee1e981cd4dcd07051.tar.xz
ice-f1b727794617cc064d3aabee1e981cd4dcd07051.zip
Fixed ICE-4882:
Better logging in C++, especially with services. On compilers with stack-trace printing support, the stack trace of most exceptions is now logged.
Diffstat (limited to 'cpp/src/IceStorm/Service.cpp')
-rw-r--r--cpp/src/IceStorm/Service.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/IceStorm/Service.cpp b/cpp/src/IceStorm/Service.cpp
index fa94c80619a..b60ead9bc5f 100644
--- a/cpp/src/IceStorm/Service.cpp
+++ b/cpp/src/IceStorm/Service.cpp
@@ -151,7 +151,7 @@ ServiceI::start(
{
_instance = 0;
- ostringstream s;
+ LoggerOutputBase s;
s << "exception while starting IceStorm service " << name << ":\n";
s << ex;
@@ -182,7 +182,7 @@ ServiceI::start(
}
catch(const Ice::LocalException& ex)
{
- ostringstream s;
+ LoggerOutputBase s;
s << "failed to load default Freeze database plugin:\n" << ex;
IceBox::FailureException e(__FILE__, __LINE__);
@@ -215,7 +215,7 @@ ServiceI::start(
{
_instance = 0;
- ostringstream s;
+ LoggerOutputBase s;
s << "exception while starting IceStorm service " << name << ":\n";
s << ex;
@@ -402,7 +402,7 @@ ServiceI::start(
{
_instance = 0;
- ostringstream s;
+ LoggerOutputBase s;
s << "exception while starting IceStorm service " << name << ":\n";
s << ex;
@@ -443,7 +443,7 @@ ServiceI::start(const CommunicatorPtr& communicator,
catch(const Ice::Exception& ex)
{
_instance = 0;
- ostringstream s;
+ LoggerOutputBase s;
s << "exception while starting IceStorm service " << name << ":\n";
s << ex;