Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan D. Brooks2011-08-02 16:05:44 -0400
committerRyan D. Brooks2011-08-02 16:05:44 -0400
commit5618fe9dd7eb79ae3118d1e874aace2ce208bec8 (patch)
treebc6fce7bf67baca7c3ecb0279133657eb90eb66b /plugins/org.eclipse.osee.framework.core.datastore
parent38f5425454f60d085a2ad10b340b63a5c1562378 (diff)
downloadorg.eclipse.osee-5618fe9dd7eb79ae3118d1e874aace2ce208bec8.tar.gz
org.eclipse.osee-5618fe9dd7eb79ae3118d1e874aace2ce208bec8.tar.xz
org.eclipse.osee-5618fe9dd7eb79ae3118d1e874aace2ce208bec8.zip
refactor: Replace OseeLog.log() calls that use String.format with OseeLog.logf
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.datastore')
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/MysqlSqlManager.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/PostgreSqlManager.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java4
5 files changed, 10 insertions, 10 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java
index 355b8ce1fb..22e5549357 100644
--- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java
+++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/DatastoreInitOperation.java
@@ -89,8 +89,8 @@ public class DatastoreInitOperation extends AbstractOperation {
private static void deleteBinaryBackingData() {
String binaryDataPath = OseeServerProperties.getOseeApplicationServerData();
- OseeLog.log(Activator.class, Level.INFO,
- String.format("Deleting application server binary data [%s]...", binaryDataPath));
+ OseeLog.logf(Activator.class, Level.INFO,
+ "Deleting application server binary data [%s]...", binaryDataPath);
Lib.deleteDir(new File(binaryDataPath + File.separator + "attr"));
}
}
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java
index 60550051c6..44cbb3bd8e 100644
--- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java
+++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/cache/DatabaseBranchAccessor.java
@@ -74,8 +74,8 @@ public class DatabaseBranchAccessor extends AbstractDatabaseAccessor<Branch> {
for (Branch branch : cache.getAll()) {
branch.clearDirty();
}
- OseeLog.log(Activator.class, Level.INFO,
- String.format("Branch Cache loaded [%s]", Lib.getElapseString(startTime)));
+ OseeLog.logf(Activator.class, Level.INFO,
+ "Branch Cache loaded [%s]", Lib.getElapseString(startTime));
}
private void loadBranches(BranchCache cache, Map<Branch, Integer> childToParent, Map<Branch, Integer> branchToBaseTx, Map<Branch, Integer> branchToSourceTx, Map<Branch, Integer> associatedArtifact) throws OseeCoreException {
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/MysqlSqlManager.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/MysqlSqlManager.java
index f38f90b99f..ecff1984bf 100644
--- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/MysqlSqlManager.java
+++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/MysqlSqlManager.java
@@ -87,8 +87,8 @@ public class MysqlSqlManager extends SqlManagerImpl {
if (iData.ignoreMySql()) {
continue;
}
- OseeLog.log(Activator.class, Level.INFO,
- String.format("Dropping Index: [%s] FROM [%s]", iData.getId(), tableName));
+ OseeLog.logf(Activator.class, Level.INFO,
+ "Dropping Index: [%s] FROM [%s]", iData.getId(), tableName);
if (iData.getId().equals("PRIMARY")) {
ConnectionHandler.runPreparedUpdate("ALTER TABLE " + tableDef.getFullyQualifiedTableName() + " DROP PRIMARY KEY");
} else {
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/PostgreSqlManager.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/PostgreSqlManager.java
index a3034544bc..8146b528c2 100644
--- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/PostgreSqlManager.java
+++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/PostgreSqlManager.java
@@ -86,8 +86,8 @@ public class PostgreSqlManager extends SqlManagerImpl {
if (iData.ignoreMySql()) {
continue;
}
- OseeLog.log(Activator.class, Level.FINE,
- String.format("Dropping Index: [%s] FROM [%s]\n", iData.getId(), tableName));
+ OseeLog.logf(Activator.class, Level.FINE,
+ "Dropping Index: [%s] FROM [%s]\n", iData.getId(), tableName);
if (iData.getId().equals("PRIMARY")) {
ConnectionHandler.runPreparedUpdate(connection,
"ALTER TABLE " + tableDef.getFullyQualifiedTableName() + " DROP PRIMARY KEY");
diff --git a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java
index 1340f0cd57..7ab6da9590 100644
--- a/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java
+++ b/plugins/org.eclipse.osee.framework.core.datastore/src/org/eclipse/osee/framework/core/datastore/schema/sql/SqlManager.java
@@ -300,8 +300,8 @@ public abstract class SqlManager {
List<IndexElement> tableIndices = tableDef.getIndexData();
String tableName = tableDef.getFullyQualifiedTableName();
for (IndexElement iData : tableIndices) {
- OseeLog.log(Activator.class, Level.FINE,
- String.format("Dropping Index: [%s] FROM [%s]\n", iData.getId(), tableName));
+ OseeLog.logf(Activator.class, Level.FINE,
+ "Dropping Index: [%s] FROM [%s]\n", iData.getId(), tableName);
ConnectionHandler.runPreparedUpdate(DROP_STRING + " INDEX " + iData.getId());
}
}

Back to the top