IDEMPIERE-5730 - Context is not parsed in exception message logs thrown from processes (#1845)

This commit is contained in:
Peter Takács 2023-05-29 10:22:03 +02:00 committed by GitHub
parent 430823153f
commit 31365e24e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -270,9 +270,9 @@ public abstract class SvrProcess implements ProcessCall
if (msg == null) if (msg == null)
msg = e.toString(); msg = e.toString();
if (e.getCause() != null) if (e.getCause() != null)
log.log(Level.SEVERE, msg, e.getCause()); log.log(Level.SEVERE, Msg.parseTranslation(getCtx(), msg), e.getCause());
else else
log.log(Level.SEVERE, msg, e); log.log(Level.SEVERE, Msg.parseTranslation(getCtx(), msg), e);
success = false; success = false;
// throw new RuntimeException(e); // throw new RuntimeException(e);
} }