diff options
author | Rohan Kumar <rohankanojia420@gmail.com> | 2016-03-14 11:47:57 +0530 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2016-03-15 00:17:04 +0000 |
commit | b64c7f946ad56a7566e117b63657e654afaab2bd (patch) | |
tree | 8c559cbe277f0a8f50913bd83ee6606bedd19668 /ucb/source | |
parent | b69d253fe4192c7224b4205ca52109070d2df5ed (diff) |
tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
I removed OSL_DEBUG_LEVEL > 1 conditionals and the g_warning() with
SAL_INFO() and SAL_WARN
Change-Id: Icb4ab72245111b52c59a47cc659dfdb79d5690ee
Reviewed-on: https://gerrit.libreoffice.org/23232
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/gio/gio_content.cxx | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/ucb/source/ucp/gio/gio_content.cxx b/ucb/source/ucp/gio/gio_content.cxx index 10b24e79a83b..5305486ab933 100644 --- a/ucb/source/ucp/gio/gio_content.cxx +++ b/ucb/source/ucp/gio/gio_content.cxx @@ -685,9 +685,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( for ( sal_Int32 n = 0; n < nCount; ++n ) { const beans::PropertyValue& rValue = pValues[ n ]; -#if OSL_DEBUG_LEVEL > 1 - g_warning("Set prop '%s'", OUStringToOString(rValue.Name, RTL_TEXTENCODING_UTF8).getStr()); -#endif + SAL_WARN("ucb.ucp.gio", "Set prop '" << rValue.Name << "'"); if ( rValue.Name == "ContentType" || rValue.Name == "MediaType" || rValue.Name == "IsDocument" || @@ -723,9 +721,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( if (!newName || !oldName || strcmp(newName, oldName)) { -#if OSL_DEBUG_LEVEL > 1 - g_warning ("Set new name to '%s'", newName); -#endif + SAL_WARN("ucb.ucp.gio", "Set new name to '" << newName << "'"); aEvent.PropertyName = "Title"; if (oldName) @@ -910,10 +906,7 @@ uno::Any Content::open(const ucb::OpenCommandArgument2 & rOpenCommand, // Note: rOpenCommand.Sink may contain an XStream // implementation. Support for this type of // sink is optional... -#ifdef DEBUG - g_warning ("Failed to load data from '%s'", - OUStringToOString(m_xIdentifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr()); -#endif + SAL_WARN("ucb.ucp.gio", "Failed to load data from '" << m_xIdentifier->getContentIdentifier() << "'"); ucbhelper::cancelCommandExecution( uno::makeAny (ucb::UnsupportedDataSinkException @@ -923,7 +916,7 @@ uno::Any Content::open(const ucb::OpenCommandArgument2 & rOpenCommand, } } else - g_warning ("Open falling through ..."); + SAL_INFO("ucb.ucp.gio", "Open falling through ..."); return aRet; } @@ -1049,9 +1042,7 @@ void Content::insert(const uno::Reference< io::XInputStream > &xInputStream, g_file_info_has_attribute(pInfo, G_FILE_ATTRIBUTE_STANDARD_TYPE) && g_file_info_get_file_type(pInfo) == G_FILE_TYPE_DIRECTORY ) { -#if OSL_DEBUG_LEVEL > 1 - g_warning ("Make directory"); -#endif + SAL_INFO("ucb.ucp.gio", "Make directory"); if( !g_file_make_directory( getGFile(), nullptr, &pError)) ucbhelper::cancelCommandExecution(mapGIOError(pError), xEnv); return; @@ -1171,17 +1162,11 @@ uno::Reference< ucb::XContent > create_document = false; else { -#ifdef DEBUG - g_warning( "Failed to create new content '%s'", OUStringToOString(Info.Type, - RTL_TEXTENCODING_UTF8).getStr() ); -#endif + SAL_WARN("ucb.ucp.gio", "Failed to create new content '" << Info.Type << "'"); return uno::Reference< ucb::XContent >(); } -#if OSL_DEBUG_LEVEL > 1 - g_warning( "createNewContent (%d)", (int) create_document ); -#endif - + SAL_INFO("ucb.ucp.gio", "createNewContent (" << create_document << ")"); OUString aURL = m_xIdentifier->getContentIdentifier(); if ( ( aURL.lastIndexOf( '/' ) + 1 ) != aURL.getLength() ) |