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>
This commit is contained in:
parent
d56b619753
commit
c0e687edf4
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue