[Libreoffice-commits] core.git: framework/source include/sal
Stephan Bergmann
sbergman at redhat.com
Tue May 7 01:18:33 PDT 2013
framework/source/dispatch/servicehandler.cxx | 8 ++++++--
include/sal/log-areas.dox | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)
New commits:
commit ee84491568d72fe824bfc047fc17a3a978375855
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue May 7 10:18:11 2013 +0200
Better logging
Change-Id: Ic3dca6f1f0c0f7de7070801793938569e76e1907
diff --git a/framework/source/dispatch/servicehandler.cxx b/framework/source/dispatch/servicehandler.cxx
index 0f4a806..e67370b 100644
--- a/framework/source/dispatch/servicehandler.cxx
+++ b/framework/source/dispatch/servicehandler.cxx
@@ -262,8 +262,12 @@ css::uno::Reference< css::uno::XInterface > ServiceHandler::implts_dispatch( con
// ignore all errors - inclusive runtime errors!
// E.g. a script based service (written in phyton) could not be executed
// because it contains syntax errors, which was detected at runtime ...
- catch(const css::uno::Exception&)
- { xService.clear(); }
+ catch(const css::uno::Exception& e)
+ {
+ SAL_WARN(
+ "fwk.dispatch", "ignored UNO Exception \"" << e.Message << '"');
+ xService.clear();
+ }
return xService;
}
diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index 37f8f3f..8f71f15 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -127,6 +127,7 @@ certain functionality.
@li @c fwk - framework
@li @c fwk.desktop
+ at li @c fwk.dispatch
@li @c fwk.session
@section i18nlangtag
More information about the Libreoffice-commits
mailing list