sal/log.hxx functionality also includes the equivalent of OSL_LOG_PREFIX

Change-Id: I1bb0115a378003b5cc5b1cfc59c474a1f100d894
This commit is contained in:
Stephan Bergmann
2014-04-16 22:42:40 +02:00
parent 8b9858b0ae
commit c3e84d4c74
6 changed files with 85 additions and 86 deletions

View File

@@ -101,16 +101,16 @@ void IncomingRequest::execute() const {
return;
} catch (const css::uno::RuntimeException & e) {
OSL_TRACE(
OSL_LOG_PREFIX "caught UNO runtime exception '%s'",
"caught UNO runtime exception '%s'",
(OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).
getStr()));
} catch (const std::exception & e) {
OSL_TRACE(OSL_LOG_PREFIX "caught C++ exception '%s'", e.what());
OSL_TRACE("caught C++ exception '%s'", e.what());
}
bridge_->terminate(false);
} else {
if (isExc) {
OSL_TRACE(OSL_LOG_PREFIX "oneway method raised exception");
OSL_TRACE("oneway method raised exception");
}
bridge_->decrementCalls();
}
@@ -148,8 +148,7 @@ bool IncomingRequest::execute_throw(
ifc = prov->getInstance(oid_);
} catch (const css::container::NoSuchElementException & e) {
OSL_TRACE(
(OSL_LOG_PREFIX "initial element '%s':"
" NoSuchElementException '%s'"),
"initial element '%s': NoSuchElementException '%s'",
OUStringToOString(oid_, RTL_TEXTENCODING_UTF8).getStr(),
(OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).
getStr()));