Kaydet (Commit) 3224f26c authored tarafından Noel Grandin's avatar Noel Grandin

OSL_TRACE->SAL in unotools..uui

Change-Id: I7f391604401b8a10f5d451673ed6223c031c56ab
üst 4e182284
...@@ -393,6 +393,7 @@ certain functionality. ...@@ -393,6 +393,7 @@ certain functionality.
@section unotools @section unotools
@li @c unotools
@li @c unotools.config @li @c unotools.config
@li @c unotools.i18n @li @c unotools.i18n
@li @c unotools.misc @li @c unotools.misc
......
...@@ -372,7 +372,7 @@ OUString getExecutableBaseName() ...@@ -372,7 +372,7 @@ OUString getExecutableBaseName()
sExecutable = sExecutable.copy(0,nExtIndex); sExecutable = sExecutable.copy(0,nExtIndex);
} }
else else
OSL_TRACE("Cannot get executable name: osl_getExecutableFile failed"); SAL_WARN("unotools", "Cannot get executable name: osl_getExecutableFile failed");
return sExecutable; return sExecutable;
} }
......
...@@ -161,7 +161,7 @@ void GlobalEventConfig_Impl::Notify( const Sequence< OUString >& ) ...@@ -161,7 +161,7 @@ void GlobalEventConfig_Impl::Notify( const Sequence< OUString >& )
void GlobalEventConfig_Impl::ImplCommit() void GlobalEventConfig_Impl::ImplCommit()
{ {
//DF need to check it this is correct?? //DF need to check it this is correct??
OSL_TRACE("In GlobalEventConfig_Impl::ImplCommit"); SAL_INFO("unotools", "In GlobalEventConfig_Impl::ImplCommit");
EventBindingHash::const_iterator it = m_eventBindingHash.begin(); EventBindingHash::const_iterator it = m_eventBindingHash.begin();
EventBindingHash::const_iterator it_end = m_eventBindingHash.end(); EventBindingHash::const_iterator it_end = m_eventBindingHash.end();
// clear the existing nodes // clear the existing nodes
...@@ -177,7 +177,7 @@ void GlobalEventConfig_Impl::ImplCommit() ...@@ -177,7 +177,7 @@ void GlobalEventConfig_Impl::ImplCommit()
sNode = SETNODE_BINDINGS PATHDELIMITER "BindingType['" + sNode = SETNODE_BINDINGS PATHDELIMITER "BindingType['" +
it->first + it->first +
"']" PATHDELIMITER PROPERTYNAME_BINDINGURL; "']" PATHDELIMITER PROPERTYNAME_BINDINGURL;
OSL_TRACE("writing binding for: %s",OUStringToOString(sNode , RTL_TEXTENCODING_ASCII_US ).pData->buffer); SAL_INFO("unotools", "writing binding for: " << sNode);
seqValues[ 0 ].Name = sNode; seqValues[ 0 ].Name = sNode;
seqValues[ 0 ].Value <<= it->second; seqValues[ 0 ].Value <<= it->second;
//write the data to the registry //write the data to the registry
...@@ -207,7 +207,7 @@ void GlobalEventConfig_Impl::initBindingInfo() ...@@ -207,7 +207,7 @@ void GlobalEventConfig_Impl::initBindingInfo()
aBuffer.append( lEventNames[i] ); aBuffer.append( lEventNames[i] );
aBuffer.append( aCommandKey ); aBuffer.append( aCommandKey );
lMacros[0] = aBuffer.makeStringAndClear(); lMacros[0] = aBuffer.makeStringAndClear();
OSL_TRACE("reading binding for: %s",OUStringToOString(lMacros[0] , RTL_TEXTENCODING_ASCII_US ).pData->buffer); SAL_INFO("unotools", "reading binding for: " << lMacros[0]);
Sequence< Any > lValues = GetProperties( lMacros ); Sequence< Any > lValues = GetProperties( lMacros );
OUString sMacroURL; OUString sMacroURL;
if( lValues.getLength() > 0 ) if( lValues.getLength() > 0 )
......
...@@ -1795,7 +1795,7 @@ void LocaleDataWrapper::outputCheckMessage( const char* pStr ) ...@@ -1795,7 +1795,7 @@ void LocaleDataWrapper::outputCheckMessage( const char* pStr )
{ {
fprintf( stderr, "\n%s\n", pStr); fprintf( stderr, "\n%s\n", pStr);
fflush( stderr); fflush( stderr);
OSL_TRACE("%s", pStr); SAL_WARN("unotools", pStr);
} }
// static // static
......
...@@ -173,7 +173,7 @@ struct TokenHandler ...@@ -173,7 +173,7 @@ struct TokenHandler
{ {
virtual ::sal_Int32 SAL_CALL getTokenFromUTF8( const uno::Sequence< ::sal_Int8 >& Identifier ) throw (uno::RuntimeException) override virtual ::sal_Int32 SAL_CALL getTokenFromUTF8( const uno::Sequence< ::sal_Int8 >& Identifier ) throw (uno::RuntimeException) override
{ {
OSL_TRACE("getTokenFromUTF8() %s", reinterpret_cast<const char*>(Identifier.getConstArray())); SAL_INFO("unoxml", "getTokenFromUTF8() " << reinterpret_cast<const char*>(Identifier.getConstArray()));
return Identifier.getLength() ? Identifier[0] : 0; return Identifier.getLength() ? Identifier[0] : 0;
} }
......
...@@ -63,7 +63,9 @@ namespace DOM ...@@ -63,7 +63,9 @@ namespace DOM
} }
pNs = xmlSearchNsByHref(pNode->doc, pNode, pUri); pNs = xmlSearchNsByHref(pNode->doc, pNode, pUri);
// if (!pNs) hmm... now what? throw? // if (!pNs) hmm... now what? throw?
if (!pNs) { OSL_TRACE("CAtttr: cannot create namespace"); } if (!pNs) {
SAL_WARN("unoxml", "CAtttr: cannot create namespace");
}
return pNs; return pNs;
} }
......
...@@ -82,8 +82,8 @@ namespace DOM ...@@ -82,8 +82,8 @@ namespace DOM
strlen(reinterpret_cast<const char*>(pHref)), strlen(reinterpret_cast<const char*>(pHref)),
RTL_TEXTENCODING_UTF8); RTL_TEXTENCODING_UTF8);
OSL_TRACE("Trying to add namespace %s (prefix %s)", SAL_INFO("unoxml", "Trying to add namespace " << reinterpret_cast<const char*>(pHref) <<
reinterpret_cast<const char*>(pHref), reinterpret_cast<const char*>(pPrefix)); "(prefix " << reinterpret_cast<const char*>(pPrefix) << ")" );
Context::NamespaceMapType::iterator aIter= Context::NamespaceMapType::iterator aIter=
io_rContext.maNamespaceMap.find(val); io_rContext.maNamespaceMap.find(val);
...@@ -113,8 +113,7 @@ namespace DOM ...@@ -113,8 +113,7 @@ namespace DOM
OString prefix(pPrefix, OString prefix(pPrefix,
strlen(reinterpret_cast<const char*>(pPrefix))); strlen(reinterpret_cast<const char*>(pPrefix)));
OSL_TRACE("getTokenWithPrefix(): prefix %s, name %s", SAL_INFO("unoxml", "getTokenWithPrefix(): prefix " << pPrefix << ", name " << pName);
pPrefix, pName);
Context::NamespaceVectorType::value_type::const_iterator aIter; Context::NamespaceVectorType::value_type::const_iterator aIter;
if( (aIter=std::find_if(rContext.maNamespaces.back().begin(), if( (aIter=std::find_if(rContext.maNamespaces.back().begin(),
......
...@@ -160,7 +160,7 @@ void getRememberModes( ...@@ -160,7 +160,7 @@ void getRememberModes(
bHasRememberModePersistent = true; bHasRememberModePersistent = true;
break; break;
default: default:
OSL_TRACE( "Unsupported RememberAuthentication value" ); SAL_WARN( "uui", "Unsupported RememberAuthentication value" << rRememberModes[i] );
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment