IDEMPIERE-5237 : Add tablename on log when a column is missing (#1258)

This commit is contained in:
Nicolas Micoud 2022-03-18 14:39:37 +01:00 committed by GitHub
parent 4f5c3360fc
commit 98f31bc3eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -543,7 +543,7 @@ public abstract class PO
int index = get_ColumnIndex(columnName);
if (index < 0)
{
log.log(Level.WARNING, "Column not found - " + columnName);
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
Trace.printStack();
return null;
}
@ -614,7 +614,7 @@ public abstract class PO
int index = get_ColumnIndex(columnName);
if (index < 0)
{
log.log(Level.WARNING, "Column not found - " + columnName);
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
return null;
}
return get_ValueOld (index);
@ -672,7 +672,7 @@ public abstract class PO
int index = get_ColumnIndex(columnName);
if (index < 0)
{
log.log(Level.WARNING, "Column not found - " + columnName);
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
return false;
}
return is_ValueChanged (index);
@ -730,7 +730,7 @@ public abstract class PO
int index = get_ColumnIndex(columnName);
if (index < 0)
{
log.log(Level.WARNING, "Column not found - " + columnName);
log.log(Level.WARNING, "Column not found - " + get_TableName() + "." + columnName);
return null;
}
return get_ValueDifference (index);
@ -766,8 +766,8 @@ public abstract class PO
int index = get_ColumnIndex(ColumnName);
if (index < 0)
{
log.log(Level.SEVERE, "Column not found - " + ColumnName);
log.saveError("ColumnNotFound", "Column not found - " + ColumnName);
log.log(Level.SEVERE, "Column not found - " + get_TableName() + "." + ColumnName);
log.saveError("ColumnNotFound", get_TableName() + "." + ColumnName);
return false;
}
if (ColumnName.endsWith("_ID") && value instanceof String )