From c3586b684c58e06cd80dea87d7681354acfec80b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Dec 2016 16:31:57 +0200 Subject: OSL_TRACE->SAL in chart2..oox Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2 Reviewed-on: https://gerrit.libreoffice.org/31907 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- extensions/source/update/check/updatecheck.cxx | 6 ++---- extensions/source/update/check/updatecheckjob.cxx | 6 ++---- extensions/source/update/check/updateprotocol.cxx | 2 -- extensions/source/update/feed/test/updatefeedtest.cxx | 6 ++---- extensions/source/update/feed/updatefeed.cxx | 4 ---- 5 files changed, 6 insertions(+), 18 deletions(-) (limited to 'extensions/source/update') diff --git a/extensions/source/update/check/updatecheck.cxx b/extensions/source/update/check/updatecheck.cxx index 437af2a3d541..5c23f182ad02 100644 --- a/extensions/source/update/check/updatecheck.cxx +++ b/extensions/source/update/check/updatecheck.cxx @@ -537,8 +537,7 @@ UpdateCheckThread::run() catch(const uno::Exception& e) { // Silently catch all errors - OSL_TRACE( "Caught exception: %s\n thread terminated.\n", - OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() ); + SAL_WARN("extensions.update", "Caught exception, thread terminated. " << e.Message ); } } @@ -553,8 +552,7 @@ ManualUpdateCheckThread::run() } catch(const uno::Exception& e) { // Silently catch all errors - OSL_TRACE( "Caught exception: %s\n thread terminated.\n", - OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() ); + SAL_WARN("extensions.update", "Caught exception, thread terminated. " << e.Message ); } } diff --git a/extensions/source/update/check/updatecheckjob.cxx b/extensions/source/update/check/updatecheckjob.cxx index 4abdb50ddd3a..e891f3189664 100644 --- a/extensions/source/update/check/updatecheckjob.cxx +++ b/extensions/source/update/check/updatecheckjob.cxx @@ -141,8 +141,7 @@ void SAL_CALL InitUpdateCheckJobThread::run() aController->showDialog( true ); } catch (const uno::Exception &e) { // fdo#64962 - don't bring the app down on some unexpected exception. - OSL_TRACE( "Caught init update exception: %s\n thread terminated.\n", - OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr() ); + SAL_WARN("extensions.update", "Caught init update exception, thread terminated. " << e.Message ); } } @@ -246,8 +245,7 @@ void UpdateCheckJob::handleExtensionUpdates( const uno::Sequence< beans::NamedVa } catch( const uno::Exception& e ) { - OSL_TRACE( "Caught exception: %s\n thread terminated.\n", - OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); + SAL_WARN("extensions.update", "Caught exception, thread terminated. " << e.Message); } } diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx index 4b656478991d..b1e9ecaac90e 100644 --- a/extensions/source/update/check/updateprotocol.cxx +++ b/extensions/source/update/check/updateprotocol.cxx @@ -80,8 +80,6 @@ checkForUpdates( uno::Reference< task::XInteractionHandler > const & rxInteractionHandler, const uno::Reference< deployment::XUpdateInformationProvider >& rUpdateInfoProvider) { - OSL_TRACE("checking for updates .."); - OUString myArch; OUString myOS; diff --git a/extensions/source/update/feed/test/updatefeedtest.cxx b/extensions/source/update/feed/test/updatefeedtest.cxx index 083c095d8b0c..a50cde2fa5a5 100644 --- a/extensions/source/update/feed/test/updatefeedtest.cxx +++ b/extensions/source/update/feed/test/updatefeedtest.cxx @@ -70,16 +70,14 @@ SAL_IMPLEMENT_MAIN() { uno::Sequence< uno::Reference< xml::dom::XElement > > theUpdateInfo = rUpdateInformationProvider->getUpdateInformation( theURLs, aExtension ); - - OSL_TRACE( "getUpdateInformation returns %d element(s)", theUpdateInfo.getLength() ); } catch( const uno::Exception & e ) { - OSL_TRACE( "exception caught: %s", OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr()); + SAL_WARN("extensions.update", "exception caught: " << e.Message); } catch( ... ) { - OSL_TRACE( "exception of undetermined type caught" ); + SAL_WARN("extensions.update", "exception of undetermined type caught" ); } diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx index 0ab0e1cec738..38c434608312 100644 --- a/extensions/source/update/feed/updatefeed.cxx +++ b/extensions/source/update/feed/updatefeed.cxx @@ -85,16 +85,12 @@ public: throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException) { sal_Int32 n = m_xStream->readBytes(aData, nBytesToRead); - if ( n ) - OSL_TRACE( "Read [%d] bytes: %s", n, aData.get()->elements ); return n; }; virtual sal_Int32 SAL_CALL readSomeBytes(uno::Sequence< sal_Int8 >& aData, sal_Int32 nMaxBytesToRead) throw (io::NotConnectedException, io::BufferSizeExceededException, io::IOException, uno::RuntimeException) { sal_Int32 n = m_xStream->readSomeBytes(aData, nMaxBytesToRead); - if ( n ) - OSL_TRACE( "Read [%d] bytes: %s", n, aData.get()->elements ); return n; }; virtual void SAL_CALL skipBytes( sal_Int32 nBytesToSkip ) -- cgit