summaryrefslogtreecommitdiff
path: root/desktop/source/migration/migration.cxx
diff options
context:
space:
mode:
authorArnold Dumas <arnold@dumas.at>2016-06-06 13:47:41 +0200
committerMichael Stahl <mstahl@redhat.com>2016-06-10 15:34:28 +0000
commite1ca24369142af3e721e789bf757be671e1905b7 (patch)
tree80d2514b92beaf47d6f024e4d7e75a5c4260d973 /desktop/source/migration/migration.cxx
parent89bbd0ecbf18a1e9030e49443fa15d068b19f767 (diff)
tdf#43157: Clean up OSL_TRACE
Change-Id: I237c0aad5eefaf7e3dda2f84924c86cd7f82021b Reviewed-on: https://gerrit.libreoffice.org/25970 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'desktop/source/migration/migration.cxx')
-rw-r--r--desktop/source/migration/migration.cxx34
1 files changed, 9 insertions, 25 deletions
diff --git a/desktop/source/migration/migration.cxx b/desktop/source/migration/migration.cxx
index b8e933341141..fb9b08ddc565 100644
--- a/desktop/source/migration/migration.cxx
+++ b/desktop/source/migration/migration.cxx
@@ -170,9 +170,7 @@ bool MigrationImpl::alreadyMigrated()
File aFile(aStr);
// create migration stamp, and/or check its existence
bool bRet = aFile.open (osl_File_OpenFlag_Write | osl_File_OpenFlag_Create | osl_File_OpenFlag_NoLock) == FileBase::E_EXIST;
- OSL_TRACE( "File '%s' exists? %d\n",
- OUStringToOString(aStr, RTL_TEXTENCODING_ASCII_US).getStr(),
- bRet );
+ SAL_INFO( "desktop.migration", "File '" << aStr << "' exists? " << bRet );
return bRet;
}
@@ -193,7 +191,7 @@ bool MigrationImpl::initializeMigration()
bRet = !m_aInfo.userdata.isEmpty();
}
- OSL_TRACE( "Migration %s", bRet ? "needed" : "not required" );
+ SAL_INFO( "desktop.migration", "Migration " << ( bRet ? "needed" : "not required" ) );
return bRet;
}
@@ -344,7 +342,7 @@ bool MigrationImpl::checkMigrationCompleted()
} catch (const Exception&) {
// just return false...
}
- OSL_TRACE( "Migration %s", bMigrationCompleted ? "already completed" : "not done" );
+ SAL_INFO( "desktop.migration", "Migration " << ( bMigrationCompleted ? "already completed" : "not done" ) );
return bMigrationCompleted;
}
@@ -387,8 +385,7 @@ bool MigrationImpl::readAvailableMigrations(migrations_available& rAvailableMigr
for (sal_Int32 j=0; j<seqVersions.getLength(); j++)
aSupportedMigration.supported_versions.push_back(seqVersions[j].trim());
insertSorted( rAvailableMigrations, aSupportedMigration );
- OSL_TRACE( " available migration '%s'\n",
- OUStringToOString( aSupportedMigration.name, RTL_TEXTENCODING_ASCII_US ).getStr() );
+ SAL_INFO( "desktop.migration", " available migration '" << aSupportedMigration.name << "'" );
}
return true;
@@ -583,10 +580,8 @@ sal_Int32 MigrationImpl::findPreferredMigrationProcess(const migrations_availabl
++rIter;
}
- OSL_TRACE( " preferred migration is from product '%s'\n",
- OUStringToOString( m_aInfo.productname, RTL_TEXTENCODING_ASCII_US ).getStr() );
- OSL_TRACE( " and settings directory '%s'\n",
- OUStringToOString( m_aInfo.userdata, RTL_TEXTENCODING_ASCII_US ).getStr() );
+ SAL_INFO( "desktop.migration", " preferred migration is from product '" << m_aInfo.productname << "'");
+ SAL_INFO( "desktop.migration", " and settings directory '" << m_aInfo.userdata << "'");
return nIndex;
}
@@ -705,10 +700,7 @@ bool getComponent(OUString const & path, OUString * component)
{
OSL_ASSERT(component != nullptr);
if (path.isEmpty() || path[0] != '/') {
- OSL_TRACE(
- ("configuration migration in/exclude path %s ignored (does not"
- " start with slash)"),
- OUStringToOString(path, RTL_TEXTENCODING_UTF8).getStr());
+ SAL_INFO( "desktop.migration", "configuration migration in/exclude path " << path << " ignored (does not start with slash)" );
return false;
}
sal_Int32 i = path.indexOf('/', 1);
@@ -781,11 +773,7 @@ void MigrationImpl::copyConfig()
seg, rtl_UriCharClassPchar, rtl_UriEncodeStrict,
RTL_TEXTENCODING_UTF8));
if (enc.isEmpty() && !seg.isEmpty()) {
- OSL_TRACE(
- ("configuration migration component %s ignored (cannot"
- " be encoded as file path)"),
- OUStringToOString(
- i->first, RTL_TEXTENCODING_UTF8).getStr());
+ SAL_INFO( "desktop.migration", "configuration migration component " << i->first << " ignored (cannot be encoded as file path)" );
goto next;
}
buf.append('/');
@@ -800,11 +788,7 @@ void MigrationImpl::copyConfig()
regFilePath, setToSeq(i->second.includedPaths),
setToSeq(i->second.excludedPaths));
} else {
- OSL_TRACE(
- ("configuration migration component %s ignored (only excludes,"
- " no includes)"),
- OUStringToOString(
- i->first, RTL_TEXTENCODING_UTF8).getStr());
+ SAL_INFO( "desktop.migration", "configuration migration component " << i->first << " ignored (only excludes, no includes)" );
}
next:
;