Commit 4b832ae6 authored by manohar's avatar manohar

Conditional log writing as per debug level


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97499 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 80d4a681
......@@ -82,6 +82,8 @@ public class MiscPayConfSch implements Schedule
try
{
if(! CommonConstants.DEBUG_LEVEL.equals("0"))
{
if(CommonConstants.J2EE_VERSION.equals("1"))
{
logDirName = CommonConstants.JBOSSHOME + File.separator + "log" ;
......@@ -92,6 +94,7 @@ public class MiscPayConfSch implements Schedule
}
logDir = new File(logDirName);
filePtr = new File(logDirName+ File.separator + "miscpaysch" + currTime + ".log");
}
Document dom = null;
String xtraParams = "",source="";
......@@ -147,12 +150,15 @@ public class MiscPayConfSch implements Schedule
}
else
{
strToWrite = "Payment Confirmation for Tran Id "+tranId+" is : "+retString+" \r\n\r\n";
strToWrite = " ["+tranId+"] return ["+retString+"]";
conn.rollback();
System.out.println(">>>>>>>>>>Confirm Failed:"+tranId);
}
if(! CommonConstants.DEBUG_LEVEL.equals("0"))
{
writeLog( filePtr, strToWrite, true );
}
//System.out.println(">>>>strToWrite-----"+strToWrite);
//fos1.write(strToWrite.getBytes());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment