Skip to content

Commit

Permalink
Fix #71: Add warning and disable XESLogger when BPSLogging flag is no…
Browse files Browse the repository at this point in the history
…t active
  • Loading branch information
LeonBein committed Jun 18, 2024
1 parent f9671cb commit 34c3978
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import de.hpi.bpt.scylla.model.global.GlobalConfiguration;
import de.hpi.bpt.scylla.model.process.CommonProcessElements;
import de.hpi.bpt.scylla.model.process.ProcessModel;
import de.hpi.bpt.scylla.plugin_loader.PluginLoader;
import de.hpi.bpt.scylla.plugin_type.parser.EventOrderType;
import de.hpi.bpt.scylla.plugin_type.simulation.resource.ResourceQueueUpdatedPluggable;
import de.hpi.bpt.scylla.simulation.event.ProcessInstanceGenerationEvent;
Expand Down Expand Up @@ -105,6 +106,10 @@ public SimulationModel(Model owner, GlobalConfiguration globalConfiguration,
if (enableBpsLogging) {
outputLoggingIsOn = true;
processNodeInfos.put(processId, new TreeMap<Integer, List<ProcessNodeInfo>>());
} else {
// TODO hacky solution; consider whether the BPS flag is actually still valid or should be removed
DebugLogger.log("Warning: BPS Logging not enabled. Disabling XESLogger Plugin");
PluginLoader.getDefaultPluginLoader().deactivatePackage("de.hpi.bpt.scylla.plugin.xeslogger");
}
}
}
Expand Down

0 comments on commit 34c3978

Please sign in to comment.