diff options
Diffstat (limited to 'cpp/src/Ice/Connection.cpp')
-rw-r--r-- | cpp/src/Ice/Connection.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/src/Ice/Connection.cpp b/cpp/src/Ice/Connection.cpp index d342caa0126..ff590515c48 100644 --- a/cpp/src/Ice/Connection.cpp +++ b/cpp/src/Ice/Connection.cpp @@ -448,14 +448,20 @@ IceInternal::Connection::message(BasicStream& stream) catch (const UserException& ex) { IceUtil::RecMutex::Lock sync(*this); - Error out(_logger); - out << "unknown user exception:\n" << ex << '\n' << _transceiver->toString(); + if (_warn) + { + Warning out(_logger); + out << "unknown user exception:\n" << ex << '\n' << _transceiver->toString(); + } } catch (...) { IceUtil::RecMutex::Lock sync(*this); - Error out(_logger); - out << "unknown exception"; + if (_warn) + { + Warning out(_logger); + out << "unknown exception"; + } } } while (batch && is->i < is->b.end()); |