system_out_제거
This commit is contained in:
@@ -171,7 +171,7 @@ public class SHINBOHeaderAction extends HeaderActionSupport
|
||||
|
||||
SHINBOHeaderAction sha = new SHINBOHeaderAction();
|
||||
byte[] res = sha.addHeaderAD(orgData, message);
|
||||
System.out.println("res]" +new String(res));
|
||||
// System.out.println("res]" +new String(res));
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -202,7 +202,7 @@ public class EAILogFIleLoader {
|
||||
in = new FileInputStream(configPath);
|
||||
p.load(in);
|
||||
} catch (Exception e){
|
||||
System.out.println("환경설정 파일이 없습니다. - 파일명 : " + configPath);
|
||||
// System.out.println("환경설정 파일이 없습니다. - 파일명 : " + configPath);
|
||||
throw e;
|
||||
}
|
||||
finally{
|
||||
@@ -211,7 +211,7 @@ public class EAILogFIleLoader {
|
||||
in.close();
|
||||
}
|
||||
catch(Exception e) {
|
||||
System.out.println("close error");
|
||||
// System.out.println("close error");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -225,16 +225,16 @@ public class EAILogFIleLoader {
|
||||
// String iniKey = p.getProperty("ini.key");
|
||||
String encpval = p.getProperty("jdbc.pvalue");
|
||||
|
||||
System.out.println("=========================================================");
|
||||
System.out.println(" EAILogFileLoader Configuration - "+ new Date());
|
||||
System.out.println("=========================================================");
|
||||
// System.out.println("=========================================================");
|
||||
// System.out.println(" EAILogFileLoader Configuration - "+ new Date());
|
||||
// System.out.println("=========================================================");
|
||||
// System.out.println("driver = " + driver);
|
||||
// System.out.println("url = " + url);
|
||||
// System.out.println("ivalue = " + ival);
|
||||
// System.out.println("pvalue = " + encpval);
|
||||
// System.out.println("Table Owner = " + tableOwner);
|
||||
// System.out.println("iniFilePath = " + iniFilePath);
|
||||
System.out.println("=========================================================");
|
||||
// System.out.println("=========================================================");
|
||||
|
||||
// ScpDbAgent agt = new ScpDbAgent();
|
||||
// try {
|
||||
@@ -256,7 +256,7 @@ public class EAILogFIleLoader {
|
||||
try {
|
||||
date = new SimpleDateFormat("yyyyMMdd").parse(timeStr); // "yyyyMMddHHmmssSSS"
|
||||
} catch (ParseException e) {
|
||||
System.out.println("getDayOfWeekNum error - "+timeStr);
|
||||
// System.out.println("getDayOfWeekNum error - "+timeStr);
|
||||
// e.printStackTrace();
|
||||
}
|
||||
long time = date.getTime();
|
||||
@@ -281,7 +281,7 @@ public class EAILogFIleLoader {
|
||||
String[] info = null;
|
||||
try {
|
||||
|
||||
System.out.println(">> Log Date : " + cDay + ", rows=" + list.size());
|
||||
// System.out.println(">> Log Date : " + cDay + ", rows=" + list.size());
|
||||
|
||||
if( driver != null ) {
|
||||
Class.forName(driver);
|
||||
@@ -601,7 +601,7 @@ public class EAILogFIleLoader {
|
||||
// conn.commit();
|
||||
}
|
||||
catch(Exception ex) {
|
||||
System.out.println("ERROR SKIP INSERT - row : "+ position +", Error : " + ex.toString());
|
||||
// System.out.println("ERROR SKIP INSERT - row : "+ position +", Error : " + ex.toString());
|
||||
// ex.printStackTrace();
|
||||
if(!isForce) throw ex;
|
||||
}
|
||||
@@ -611,17 +611,17 @@ public class EAILogFIleLoader {
|
||||
catch(SQLException se) {
|
||||
// if(conn != null) conn.rollback();
|
||||
if(info!=null) {
|
||||
System.out.println("ERROR : DB 오류 - " + info.toString());
|
||||
// System.out.println("ERROR : DB 오류 - " + info.toString());
|
||||
}
|
||||
else {
|
||||
System.out.println("ERROR : DB 오류 - " + se.toString());
|
||||
// System.out.println("ERROR : DB 오류 - " + se.toString());
|
||||
}
|
||||
// se.printStackTrace();
|
||||
throw se;
|
||||
}
|
||||
catch(Exception e) {
|
||||
// if(conn != null) conn.rollback();
|
||||
System.out.println(e.toString());
|
||||
// System.out.println(e.toString());
|
||||
// e.printStackTrace();
|
||||
throw e;
|
||||
}
|
||||
@@ -630,13 +630,13 @@ public class EAILogFIleLoader {
|
||||
if(preparedStatement != null) preparedStatement.close();
|
||||
}
|
||||
catch (SQLException sqle) {
|
||||
System.out.println("SQLException was thrown: " + sqle.toString());
|
||||
// System.out.println("SQLException was thrown: " + sqle.toString());
|
||||
}
|
||||
try {
|
||||
if(conn != null) conn.close();
|
||||
}
|
||||
catch (SQLException sqle) {
|
||||
System.out.println("SQLException was thrown: " + sqle.toString());
|
||||
// System.out.println("SQLException was thrown: " + sqle.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -666,14 +666,14 @@ public class EAILogFIleLoader {
|
||||
} while (!"".equals(subMsgStr) && seq < 99); // TSEAILG02.BzwkDataSerno : NUMBER(2)
|
||||
|
||||
} catch(Exception e) {
|
||||
System.out.println("DB Logging[SLAVE] Failed - " + info[0] + "|" + info[1] + "|" + info[2] +"|seq="+seq);
|
||||
// System.out.println("DB Logging[SLAVE] Failed - " + info[0] + "|" + info[1] + "|" + info[2] +"|seq="+seq);
|
||||
throw e;
|
||||
} finally {
|
||||
if(preparedStatement != null) {
|
||||
try {
|
||||
preparedStatement.close();
|
||||
} catch (SQLException e) {
|
||||
System.out.println("SQLException was thrown: " + e.toString());
|
||||
// System.out.println("SQLException was thrown: " + e.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -729,21 +729,21 @@ public class EAILogFIleLoader {
|
||||
}
|
||||
}
|
||||
catch(Exception e) {
|
||||
System.out.println(e.toString());
|
||||
// System.out.println(e.toString());
|
||||
}
|
||||
finally {
|
||||
try {
|
||||
if(br != null) br.close();
|
||||
}
|
||||
catch(Exception e) {
|
||||
System.out.println(e.toString());
|
||||
// System.out.println(e.toString());
|
||||
}
|
||||
}
|
||||
if(count > 0) {
|
||||
loadLog(cDay, list, true);
|
||||
}
|
||||
|
||||
System.out.println(String.format("## FILE=%s, INSERT ROW COUNTS : (%d/%d)", filePath, insertCount, totalCount));
|
||||
// System.out.println(String.format("## FILE=%s, INSERT ROW COUNTS : (%d/%d)", filePath, insertCount, totalCount));
|
||||
}
|
||||
|
||||
private String[] split(String data, String deli) {
|
||||
@@ -786,7 +786,7 @@ public class EAILogFIleLoader {
|
||||
String filePath = "C:\\trlog\\tran.log"; //args[1];
|
||||
try {
|
||||
if(isReal && args.length < 2) {
|
||||
System.out.println(getUsage());
|
||||
// System.out.println(getUsage());
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
@@ -795,13 +795,13 @@ public class EAILogFIleLoader {
|
||||
filePath = args[1];
|
||||
}
|
||||
|
||||
System.out.println("\n## START LOADING Infomation - " + configPath);
|
||||
// System.out.println("\n## START LOADING Infomation - " + configPath);
|
||||
loader = new EAILogFIleLoader();
|
||||
loader.init(configPath);
|
||||
loader.parse(filePath);
|
||||
} catch (Exception e) {
|
||||
System.out.println("ERROR MAIN");
|
||||
System.out.println(e.toString());
|
||||
// System.out.println("ERROR MAIN");
|
||||
// System.out.println(e.toString());
|
||||
System.exit(-2);
|
||||
}
|
||||
System.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user