Skip to content

Commit 0daab9e

Browse files
committed
Add debug message when keep alive file paths are used
1 parent 251aae4 commit 0daab9e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/zorg/runners.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,17 @@ def _start_vim_loop(zo_paths: Iterable[Path], cfg: EditConfig) -> None:
6464
if cfg.keep_alive_file.stat().st_size == 0:
6565
paths = last_paths
6666
else:
67-
paths = last_paths = [
67+
new_paths = [
6868
Path(p.strip())
6969
for p in cfg.keep_alive_file.read_text().split()
7070
]
71+
logger.debug(
72+
"Editing files specified in the keep alive file.",
73+
keep_alive_file=cfg.keep_alive_file,
74+
old_paths=last_paths,
75+
new_paths=new_paths,
76+
)
77+
paths = last_paths = new_paths
7178

7279
cfg.keep_alive_file.unlink()
7380
vimala.vim(

0 commit comments

Comments
 (0)