comphelper/source/property/property.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c4c220b56c25a5a78106b9d0fc06280968ccdb28
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed May 10 11:36:27 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon May 22 14:16:08 2023 +0200

    improve logging when we get an exception in copyProperties
    
    Change-Id: Id37ad92df93667536efaac86db3765da98847184
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152086
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/comphelper/source/property/property.cxx 
b/comphelper/source/property/property.cxx
index 0627e71436f5..7d57baeb39cb 100644
--- a/comphelper/source/property/property.cxx
+++ b/comphelper/source/property/property.cxx
@@ -21,6 +21,7 @@
 #include <comphelper/sequence.hxx>
 #include <osl/diagnose.h>
 #include <sal/log.hxx>
+#include <comphelper/diagnose_ex.hxx>
 
 #if OSL_DEBUG_LEVEL > 0
     #include <cppuhelper/exc_hlp.hxx>
@@ -87,6 +88,8 @@ void copyProperties(const Reference<XPropertySet>& _rxSource,
             catch (Exception&)
             {
 #if OSL_DEBUG_LEVEL > 0
+                TOOLS_WARN_EXCEPTION("comphelper", "Caught exception copying 
properties");
+
                 OUStringBuffer aBuffer(
                         "::comphelper::copyProperties: could not copy property 
'"
                         + rSourceProp.Name

Reply via email to