Skip to content

Commit

Permalink
Fixed issue with logging on the simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatComposerDude committed Jan 13, 2024
1 parent c3a1ab1 commit f180e79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/team766/logging/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@

import com.team766.config.ConfigFileReader;
import com.team766.library.CircularBuffer;
import com.team766.hal.RobotProvider;
import com.team766.hal.wpilib.WPIRobotProvider;
import edu.wpi.first.wpilibj.DataLogManager;

public final class Logger {

private static final boolean ALSO_LOG_TO_DATALOG = true;
private static final boolean ALSO_LOG_TO_DATALOG = (RobotProvider.instance instanceof WPIRobotProvider);

private static class LogUncaughtException implements Thread.UncaughtExceptionHandler {
public void uncaughtException(final Thread t, final Throwable e) {
Expand Down

0 comments on commit f180e79

Please sign in to comment.