summaryrefslogtreecommitdiff
path: root/binaryurp
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-04-16 22:42:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-04-16 22:42:40 +0200
commitc3e84d4c74847271f88e1f83369d0b55b2fd6037 (patch)
treead8a1ef25097c462f39c967e276811ec03a38c87 /binaryurp
parent8b9858b0aeae8bfb3af6dd8fcfce6cecdb9b8fab (diff)
sal/log.hxx functionality also includes the equivalent of OSL_LOG_PREFIX
Change-Id: I1bb0115a378003b5cc5b1cfc59c474a1f100d894
Diffstat (limited to 'binaryurp')
-rw-r--r--binaryurp/source/incomingrequest.cxx9
-rw-r--r--binaryurp/source/writer.cxx4
2 files changed, 6 insertions, 7 deletions
diff --git a/binaryurp/source/incomingrequest.cxx b/binaryurp/source/incomingrequest.cxx
index 1ac6e10ef24b..ff30a8e142e9 100644
--- a/binaryurp/source/incomingrequest.cxx
+++ b/binaryurp/source/incomingrequest.cxx
@@ -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()));
diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx
index edcb0f5090ce..46198b96a56a 100644
--- a/binaryurp/source/writer.cxx
+++ b/binaryurp/source/writer.cxx
@@ -171,10 +171,10 @@ void Writer::execute() {
}
} catch (const css::uno::Exception & e) {
OSL_TRACE(
- OSL_LOG_PREFIX "caught UNO exception '%s'",
+ "caught UNO 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);
bridge_.clear();