Skip to content

Commit

Permalink
Remove debug flag requirement for time sync script log for sumo (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
MishkaMN authored Mar 27, 2024
1 parent 233aaa8 commit a190c2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1202,10 +1202,10 @@ public synchronized void processTimeAdvanceGrant(long time) throws InternalFeder
// A script to validate time synchronization of tools in CDASim currently relies on the following
// log line. TODO: This line is meant to be removed in the future upon completion of this work:
// https://github.com/usdot-fhwa-stol/carma-analytics-fotda/pull/43
if (log.isDebugEnabled() && (!receivedSimulationStep && firstAttemptToAdvanceToNextStep))
if (!receivedSimulationStep && firstAttemptToAdvanceToNextStep)
{
long millis = System.currentTimeMillis();
log.info("Simulation Time: {} here current system time is: {} and nextTimeStep: {} and ambasador id: {}", (int) (time/1e6), millis, nextTimeStep, getId());
log.info("Simulation Time: {} where current system time is: {} and nextTimeStep: {} and ambasador id: {}", (int) (time/1e6), millis, nextTimeStep, getId());
firstAttemptToAdvanceToNextStep = false;
}

Expand Down

0 comments on commit a190c2a

Please sign in to comment.