diff --git a/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/debugging/Tracing.java b/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/debugging/Tracing.java index 683ec2b27c..34c12f4ba2 100644 --- a/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/debugging/Tracing.java +++ b/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/debugging/Tracing.java @@ -7,6 +7,7 @@ import gov.nasa.jpl.aerie.contrib.streamline.core.Expiring; import gov.nasa.jpl.aerie.contrib.streamline.core.Resource; import gov.nasa.jpl.aerie.merlin.framework.Condition; +import gov.nasa.jpl.aerie.merlin.protocol.types.Unit; import java.util.Stack; import java.util.function.Supplier; @@ -47,7 +48,11 @@ public static > CellResource trace(Supplier @Override public void emit(final DynamicsEffect effect) { - resource.emit(effect); + traceAction( + () -> String.format("Emit '%s' on %s", + Naming.getName(effect).orElse("anonymous effect"), + name.get()), + () -> { resource.emit(effect); return Unit.UNIT; }); } @Override diff --git a/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/polynomial/LinearBoundaryConsistencySolver.java b/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/polynomial/LinearBoundaryConsistencySolver.java index 20415508ba..1a038a60b6 100644 --- a/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/polynomial/LinearBoundaryConsistencySolver.java +++ b/contrib/src/main/java/gov/nasa/jpl/aerie/contrib/streamline/modeling/polynomial/LinearBoundaryConsistencySolver.java @@ -131,7 +131,7 @@ private void solve() { if (domainChanged) { if (D.isEmpty()) { throw new IllegalStateException( - "LinearArcConsistencySolver %s failed. Domain for %s is empty: [%s, %s]".formatted( + "LinearBoundaryConsistencySolver %s failed. Domain for %s is empty: [%s, %s]".formatted( getName(this).orElseThrow(), D.variable, D.lowerBound, D.upperBound)); } // TODO: Make this more efficient by not adding constraints that are already in the queue.