Skip to content

Commit

Permalink
[PEx] Minor: create .schedule only if bug is found
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-goel committed Jul 19, 2024
1 parent 0c4be9e commit 78b7dff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public static void Initialize(int verb) {
// initialize all loggers and writers
StatWriter.Initialize();
ScratchLogger.Initialize();
ScheduleWriter.Initialize();
TextWriter.Initialize();
}

public static void logInfo(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pexplicit.runtime.PExplicitGlobal;
import pexplicit.runtime.logger.PExplicitLogger;
import pexplicit.runtime.logger.ScheduleWriter;
import pexplicit.runtime.logger.TextWriter;
import pexplicit.runtime.machine.PMachine;
import pexplicit.runtime.machine.PMachineId;
import pexplicit.runtime.scheduler.Schedule;
Expand All @@ -21,6 +22,10 @@ public ReplayScheduler(Schedule sch) {
@Override
public void run() throws TimeoutException, InterruptedException {
PExplicitLogger.logStartReplay();

ScheduleWriter.Initialize();
TextWriter.Initialize();

ScheduleWriter.logHeader();

// log run test
Expand Down

0 comments on commit 78b7dff

Please sign in to comment.