summaryrefslogtreecommitdiff
path: root/pyuno/source
diff options
context:
space:
mode:
authorsahil <gautamsahil1947@gmail.com>2023-09-01 22:35:58 +0530
committerHossein <hossein@libreoffice.org>2023-10-23 16:54:59 +0200
commitc0e687edf47f9bd2735a4e71116a9c1e50900de6 (patch)
tree43568205a4a8857a6031a7797148c07678d0db26 /pyuno/source
parentd56b61975330329c5dc1e99cc7750a690d3206ed (diff)
tdf#130924 replace '*printf' with 'SAL_*' logging macros in pyuno
Change-Id: I2c491629f52fe0b90517c563f221d7d0345b6ee9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156452 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'pyuno/source')
-rw-r--r--pyuno/source/module/pyuno_runtime.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/pyuno/source/module/pyuno_runtime.cxx b/pyuno/source/module/pyuno_runtime.cxx
index 68b1ea508293..cb95e5a46dc1 100644
--- a/pyuno/source/module/pyuno_runtime.cxx
+++ b/pyuno/source/module/pyuno_runtime.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <sal/log.hxx>
#include <config_folders.h>
#include "pyuno_impl.hxx"
@@ -944,10 +945,7 @@ Any Runtime::extractUnoException( const PyRef & excType, const PyRef &excValue,
buf.append( ", no traceback available\n" );
}
RuntimeException e(buf.makeStringAndClear());
-#if OSL_DEBUG_LEVEL > 0
- fprintf( stderr, "Python exception: %s\n",
- OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() );
-#endif
+ SAL_WARN("pyuno.runtime", "Python exception: " << e.Message);
ret <<= e;
}
return ret;