Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Log more git metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
drive station committed Nov 14, 2024
1 parent 7e3688c commit 33cef21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/frcteam3636/frc2024/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ object Robot : LoggedRobot() {

/** Start logging or pull replay logs from a file */
private fun configureAdvantageKit() {
Logger.recordMetadata("GitSHA", BuildConstants.GIT_SHA)
Logger.recordMetadata("Git SHA", BuildConstants.GIT_SHA)
Logger.recordMetadata("BuildDate", BuildConstants.BUILD_DATE)
Logger.recordMetadata("Model", model.name)
Logger.recordMetadata("Git Dirty", BuildConstants.DIRTY.toString())
Logger.recordMetadata("Git Branch", BuildConstants.GIT_BRANCH)

if (isReal()) {
Logger.addDataReceiver(WPILOGWriter()) // Log to a USB stick
Expand Down

0 comments on commit 33cef21

Please sign in to comment.