mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
default to "logs" dir for pulse if not provided
This commit is contained in:
parent
27894fd8c5
commit
37dd11c344
@ -42,7 +42,7 @@ public class ComponentPulse extends UnstartedPeriodicTaskComponent {
|
|||||||
LastReport.OnInterrupt
|
LastReport.OnInterrupt
|
||||||
);
|
);
|
||||||
this.pulseOf = pulseOf;
|
this.pulseOf = pulseOf;
|
||||||
String logsdir = getComponentProp("logsdir").orElseThrow();
|
String logsdir = getComponentProp("logsdir").orElse("logs");
|
||||||
String labelElement = pulseOf.getLabels().valueOf(fileNameLabel);
|
String labelElement = pulseOf.getLabels().valueOf(fileNameLabel);
|
||||||
this.hbpath = Path.of(logsdir).resolve(labelElement +"_status.yaml");
|
this.hbpath = Path.of(logsdir).resolve(labelElement +"_status.yaml");
|
||||||
this.linkpath = Path.of(logsdir).resolve("status.yaml");
|
this.linkpath = Path.of(logsdir).resolve("status.yaml");
|
||||||
|
Loading…
Reference in New Issue
Block a user