diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-08-20 17:58:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-08-20 17:58:44 +0200 |
commit | 2d2337eb74161f9aab9bc3cf50fa63975d9c1731 (patch) | |
tree | 2321e843c678aa340b7eaf9860e247a6d5d20b38 /filter | |
parent | deb#719941: unbreak python script provider debug logging on Python 3 (diff) | |
download | core-2d2337eb74161f9aab9bc3cf50fa63975d9c1731.tar.gz core-2d2337eb74161f9aab9bc3cf50fa63975d9c1731.zip |
Improve some debug output
Change-Id: I1008822ba8592ea43f87805bf00adbfdaf4f02fc
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/config/cache/typedetection.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/filter/source/config/cache/typedetection.cxx b/filter/source/config/cache/typedetection.cxx index 5e3697c0474f..fd0e64c959ba 100644 --- a/filter/source/config/cache/typedetection.cxx +++ b/filter/source/config/cache/typedetection.cxx @@ -445,8 +445,14 @@ OUString SAL_CALL TypeDetection::queryTypeByDescriptor(css::uno::Sequence< css:: } catch(const css::uno::RuntimeException&) { throw; } - catch(const css::uno::Exception&) - { sType = OUString(); } + catch(const css::uno::Exception& e) + { + SAL_WARN( + "filter.config", + "caught Exception \"" << e.Message + << "\" while querying type of <" << sURL << ">"); + sType = OUString(); + } //******************************************* // adapt media descriptor, so it contains the right values @@ -1138,7 +1144,9 @@ void TypeDetection::impl_openStream(::comphelper::MediaDescriptor& rDescriptor) bSuccess = rDescriptor.addInputStream(); if ( !bSuccess ) - throw css::uno::Exception(_FILTER_CONFIG_FROM_ASCII_("Could not open stream."), static_cast< css::document::XTypeDetection* >(this)); + throw css::uno::Exception( + "Could not open stream for <" + sURL + ">", + static_cast<OWeakObject *>(this)); if ( !bRequestedReadOnly ) { |