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.database
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.database')
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DatabaseTransactions.java4
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/UriDbConnectionInfo.java2
-rw-r--r--plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/core/OseeConnectionPoolImpl.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DatabaseTransactions.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DatabaseTransactions.java
index 797611b985..fb1be0416b 100644
--- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DatabaseTransactions.java
+++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/core/DatabaseTransactions.java
@@ -30,7 +30,7 @@ public final class DatabaseTransactions {
boolean initialAutoCommit = true;
OseeCoreException saveException = null;
try {
- OseeLog.log(Activator.class, Level.FINEST, String.format("Start Transaction: [%s]", dbWork.getName()));
+ OseeLog.logf(Activator.class, Level.FINEST, "Start Transaction: [%s]", dbWork.getName());
initialAutoCommit = connection.getAutoCommit();
connection.setAutoCommit(false);
@@ -38,7 +38,7 @@ public final class DatabaseTransactions {
dbWork.handleTxWork(connection);
connection.commit();
- OseeLog.log(Activator.class, Level.FINEST, String.format("End Transaction: [%s]", dbWork.getName()));
+ OseeLog.logf(Activator.class, Level.FINEST, "End Transaction: [%s]", dbWork.getName());
} catch (Exception ex) {
saveException = OseeExceptions.wrap(ex);
try {
diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/UriDbConnectionInfo.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/UriDbConnectionInfo.java
index 023224646f..24b85c1c21 100644
--- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/UriDbConnectionInfo.java
+++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/UriDbConnectionInfo.java
@@ -29,7 +29,7 @@ public class UriDbConnectionInfo implements IDbConnectionInformationContributor
public IDatabaseInfo[] getDbInformation() throws Exception {
String uri = OseeProperties.getOseeConnectionInfoUri();
if (Strings.isValid(uri)) {
- OseeLog.log(Activator.class, Level.INFO, String.format("Loading connection info from: [%s]", uri));
+ OseeLog.logf(Activator.class, Level.INFO, "Loading connection info from: [%s]", uri);
URI connectionFile = null;
if (!uri.contains("://")) {
connectionFile = new File(uri).toURI();
diff --git a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/core/OseeConnectionPoolImpl.java b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/core/OseeConnectionPoolImpl.java
index ac7a12f71b..6af69b9d83 100644
--- a/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/core/OseeConnectionPoolImpl.java
+++ b/plugins/org.eclipse.osee.framework.database/src/org/eclipse/osee/framework/database/internal/core/OseeConnectionPoolImpl.java
@@ -74,7 +74,7 @@ public class OseeConnectionPoolImpl {
}
OseeConnectionImpl connection = getOseeConnection();
connections.add(connection);
- OseeLog.log(Activator.class, Level.INFO, String.format("DbConnection: [%s] - [%d]", dbUrl, connections.size()));
+ OseeLog.logf(Activator.class, Level.INFO, "DbConnection: [%s] - [%d]", dbUrl, connections.size());
return connection;
}

Back to the top