Tidy up inconsistent log formatting

This commit is contained in:
Derry Hamilton 2019-11-06 15:13:18 +00:00
parent a7d1a6077b
commit e031dbd663
3 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>com.rasilon.ujetl</groupId> <groupId>com.rasilon.ujetl</groupId>
<artifactId>CopyingApp</artifactId> <artifactId>CopyingApp</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>2.2.0</version> <version>2.2.1</version>
<name>uJETL</name> <name>uJETL</name>
<url>https://github.com/rasilon/ujetl</url> <url>https://github.com/rasilon/ujetl</url>
<properties> <properties>

View file

@ -199,13 +199,13 @@ public class Job extends Thread {
log.info(String.format("%s - Processing table: %s",jobName,name)); log.info(String.format("%s - Processing table: %s",jobName,name));
} }
if(preTarget != null){ if(preTarget != null){
log.info("Trying to execute preTarget SQL"); log.info(String.format("%s - Trying to execute preTarget SQL",jobName));
PreparedStatement s = dConn.prepareStatement(preTarget); PreparedStatement s = dConn.prepareStatement(preTarget);
s.executeUpdate(); s.executeUpdate();
s.close(); s.close();
dConn.commit(); dConn.commit();
}else{ }else{
log.info("No preTarget; skipping."); log.info(String.format("%s - No preTarget; skipping.",jobName));
} }
log.debug("Trying to execute: "+key); log.debug("Trying to execute: "+key);
@ -245,13 +245,13 @@ public class Job extends Thread {
c.join(); c.join();
if(postTarget != null){ if(postTarget != null){
log.info("Trying to execute postTarget SQL"); log.info(String.format("%s - Trying to execute postTarget SQL",jobName));
PreparedStatement s = dConn.prepareStatement(postTarget); PreparedStatement s = dConn.prepareStatement(postTarget);
s.executeUpdate(); s.executeUpdate();
s.close(); s.close();
dConn.commit(); dConn.commit();
}else{ }else{
log.info("No postTarget; skipping."); log.info(String.format("%s - No postTarget; skipping.",jobName));
} }

View file

@ -1,6 +1,6 @@
Summary: Java app to facilitate moving data between databases. Summary: Java app to facilitate moving data between databases.
Name: uJETL Name: uJETL
Version: 2.2.0 Version: 2.2.1
Release: 1 Release: 1
Group: Applications/Database Group: Applications/Database
License: All rights reserved. License: All rights reserved.