IDEMPIERE-5340 Log the exception in EventHelper.addError for future use (FHCA-3426) (#1386)

This commit is contained in:
Carlos Ruiz 2022-07-07 08:29:59 +02:00 committed by GitHub
parent 9a64a1a11c
commit 2ba935a393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import java.util.List;
import org.compiere.model.PO;
import org.compiere.process.ProcessInfo;
import org.compiere.util.CLogger;
import org.osgi.service.event.Event;
/**
@ -93,6 +94,8 @@ public final class EventHelper {
if (msg == null)
msg = e.toString();
addErrorMessage(event, msg);
if (e instanceof Exception)
CLogger.get().saveError("Error", (Exception) e);
}
/**