diff --git a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java index f006a319dca..6759460fadd 100644 --- a/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java +++ b/epilogue-runtime/src/main/java/edu/wpi/first/epilogue/logging/EpilogueBackend.java @@ -198,9 +198,10 @@ default void log(String identifier, Collection value, Struct struct) { * * @param identifier the identifier of the data field * @param value the new value of the data field + * @param the dimension of the unit */ - default void log(String identifier, Measure value) { - log(identifier, value.baseUnitMagnitude()); + default void log(String identifier, Measure value) { + log(identifier, value, value.baseUnit()); } /** @@ -212,7 +213,7 @@ default void log(String identifier, Measure value) { * @param the dimension of the unit */ default void log(String identifier, Measure value, U unit) { - log(identifier, value.in(unit)); + log(identifier + " (" + unit.symbol() + ")", value.in(unit)); } /**