summaryrefslogtreecommitdiff
path: root/tools/source/debug/debug.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/debug/debug.cxx')
-rw-r--r--tools/source/debug/debug.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index 3f950ca8dd54..49da3089805f 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -1589,7 +1589,7 @@ void DbgOutf( const sal_Char*, ... ) {}
#if OSL_DEBUG_LEVEL > 0
-TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction)
+TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo)
{
OString sMessage( "caught an exception!" );
sMessage += "\nin function:";
@@ -1628,7 +1628,10 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c
}
}
sMessage += "\n";
- OSL_ENSURE( false, sMessage.getStr() );
+
+ SAL_DETAIL_LOG_FORMAT(
+ SAL_DETAIL_ENABLE_LOG_WARN, SAL_DETAIL_LOG_LEVEL_WARN,
+ "legacy.osl", fileAndLineNo, "%s", sMessage.getStr());
}
#endif // OSL_DEBUG_LEVEL