include/sal/log-areas.dox | 5 +++++ pyuno/source/module/pyuno_runtime.cxx | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-)
New commits: commit c0e687edf47f9bd2735a4e71116a9c1e50900de6 Author: sahil <gautamsahil1...@gmail.com> AuthorDate: Fri Sep 1 22:35:58 2023 +0530 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Mon Oct 23 16:54:59 2023 +0200 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 <hoss...@libreoffice.org> diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox index 53e1e3ae0cdd..1b4fa4813a41 100644 --- a/include/sal/log-areas.dox +++ b/include/sal/log-areas.dox @@ -346,6 +346,11 @@ certain functionality. @li @c package.xstor @li @c package.threadeddeflate +@section pyuno + +@li @c pyuno +@li @c pyuno.runtime + @section sdext @li @c sdext 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;