mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-20 03:59:49 +00:00
Add a 'PULSAR' log marker.
This commit is contained in:
1 parent
c1c3391e4a
commit
44a6d50f8f
4 files changed
+37
-22
No files matched your search
@@ -100,9 +100,9 @@ public class PulsarConfig implements IConfiguration {
|
||||
public CommentedFileConfig createConfig(Path configBasePath, String configName) {
|
||||
final Path configPath = configBasePath.resolve(String.format("%s.toml", configName));
|
||||
final CommentedFileConfig configData = CommentedFileConfig.builder(configPath).sync().autosave().writingMode(WritingMode.REPLACE).build();
|
||||
LOGGER.debug(PulseManager.CONFIG, "Built TOML config for {}", configPath.toString());
|
||||
LOGGER.debug(PulseManager.PULSAR, "Built TOML config for {}", configPath.toString());
|
||||
configData.load();
|
||||
LOGGER.debug(PulseManager.CONFIG, "Loaded TOML config file {}", configPath.toString());
|
||||
LOGGER.debug(PulseManager.PULSAR, "Loaded TOML config file {}", configPath.toString());
|
||||
return configData;
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public class PulseManager {
|
||||
private IConfiguration conf;
|
||||
private String id;
|
||||
|
||||
public static final Marker CONFIG = MarkerManager.getMarker("PULSARCONFIG");
|
||||
public static final Marker PULSAR = MarkerManager.getMarker("PULSAR");
|
||||
|
||||
/**
|
||||
* Configuration-using constructor.
|
||||
@@ -157,7 +157,7 @@ public class PulseManager {
|
||||
String[] parsedDeps = deps.split(";");
|
||||
for (String s : parsedDeps) {
|
||||
if (!ModList.get().isLoaded(s)) {
|
||||
this.log.info("Skipping Pulse " + id + "; missing dependency: " + s);
|
||||
this.log.info(PULSAR, "Skipping Pulse " + id + "; missing dependency: " + s);
|
||||
missingDeps = true;
|
||||
enabled = false;
|
||||
break;
|
||||
@@ -184,7 +184,7 @@ public class PulseManager {
|
||||
*/
|
||||
private void attachToContainerEventBus(Object obj) {
|
||||
ModContainer cnt = ModLoadingContext.get().getActiveContainer();
|
||||
this.log.debug("Attaching [" + obj + "] to event bus for container [" + cnt + "]");
|
||||
this.log.debug(PULSAR, "Attaching [" + obj + "] to event bus for container [" + cnt + "]");
|
||||
try {
|
||||
FMLModContainer mc = (FMLModContainer) cnt;
|
||||
Field ebf = mc.getClass().getDeclaredField("eventBus");
|
||||
@@ -244,7 +244,7 @@ public class PulseManager {
|
||||
String[] parsedDeps = deps.split(";");
|
||||
for (String s : parsedDeps) {
|
||||
if (!this.isPulseLoaded(s)) {
|
||||
this.log.info("Skipping Pulse " + meta.getId() + "; missing pulse: " + s);
|
||||
this.log.info(PULSAR, "Skipping Pulse " + meta.getId() + "; missing pulse: " + s);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user