Skip to content

Commit

Permalink
fix: don't print stack traces to declutter logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizh2418 committed Jan 29, 2024
1 parent 34030b1 commit d2ab399
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void registerSignals(BaseStatusSignal... newSignals) {
useTimeSync = false;
DriverStation.reportWarning(
"Status signals received have varying update rates, TimeSynced updates are now unavailable",
true);
false);
}
signals[signals.length - 1 - i] = newSignals[i];
}
Expand All @@ -57,9 +57,9 @@ public void refreshSignals() {

// Check errors
if (status == StatusCode.InvalidNetwork)
DriverStation.reportError("One or more status signals passed to signal refresher has a different CAN bus, unable to refresh", true);
DriverStation.reportError("One or more status signals passed to signal refresher has a different CAN bus, unable to refresh", false);
if (status == StatusCode.RxTimeout)
DriverStation.reportWarning("Refreshing signals timed out, check CAN bus wiring", true);
DriverStation.reportWarning("Refreshing signals timed out, check CAN bus wiring", false);

isRefreshed = true;
}
Expand Down

0 comments on commit d2ab399

Please sign in to comment.