- should not always log the convertion of oracle sql to postgresql. change from Level.ALL to Level.FINE
This commit is contained in:
Heng Sin Low 2009-07-17 08:53:40 +00:00
parent 3dd2f8b44f
commit 1269d862b0
1 changed files with 8 additions and 4 deletions

View File

@ -313,10 +313,14 @@ public class DB_PostgreSQL implements AdempiereDatabase
} }
//end vpj-cd 24/06/2005 e-evolution //end vpj-cd 24/06/2005 e-evolution
// Diagnostics (show changed, but not if AD_Error // Diagnostics (show changed, but not if AD_Error
if (!oraStatement.equals(retValue[0]) && retValue[0].indexOf("AD_Error") == -1) if (log.isLoggable(Level.FINE))
//begin vpj-cd 24/06/2005 e-evolution {
//System.out.println("PostgreSQL =>" + retValue[0] + "<= <" + oraStatement + ">"); if (!oraStatement.equals(retValue[0]) && retValue[0].indexOf("AD_Error") == -1)
log.log(Level.ALL, "PostgreSQL =>" + retValue[0] + "<= <" + oraStatement + ">"); {
//begin vpj-cd 24/06/2005 e-evolution
log.log(Level.FINE, "PostgreSQL =>" + retValue[0] + "<= <" + oraStatement + ">");
}
}
//end vpj-cd 24/06/2005 e-evolution //end vpj-cd 24/06/2005 e-evolution
// //
Convert.logMigrationScript(oraStatement, retValue[0]); Convert.logMigrationScript(oraStatement, retValue[0]);