Skip to content

Commit

Permalink
run --bmq-log-dir on darwin
Browse files Browse the repository at this point in the history
Signed-off-by: dorjesinpo <[email protected]>
  • Loading branch information
dorjesinpo committed Feb 5, 2025
1 parent 12bc29e commit 2efaa88
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/python/blazingmq/dev/it/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,11 @@ def stop(self):
self.last_known_leader = None
bad_exit = False
cores_dir = None
core_pattern_path = Path("/proc/sys/kernel/core_pattern")

if self.copy_cores is not None:
if self.copy_cores is not None and core_pattern_path.exists():
try:
with open("/proc/sys/kernel/core_pattern") as core_pattern_file:
with open(core_pattern_path) as core_pattern_file:
pattern = core_pattern_file.readline().strip()
if "%p" in pattern:
cores_dir = Path(pattern).parent
Expand Down

0 comments on commit 2efaa88

Please sign in to comment.