From c0e687edf47f9bd2735a4e71116a9c1e50900de6 Mon Sep 17 00:00:00 2001 From: sahil Date: Fri, 1 Sep 2023 22:35:58 +0530 Subject: 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 --- pyuno/source/module/pyuno_runtime.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'pyuno') 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 #include #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; -- cgit