Skip to content

Commit 01beb34

Browse files
committed
chore: Snoop on the constructor
1 parent e610dcd commit 01beb34

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
-r doc/requirements.txt \
3636
-r example/requirements.txt \
3737
-r test/requirements.txt
38+
python3 -m pip install snoop
3839
3940
- name: Test install
4041
run: python3 -m pip install .

shell_logger/shell.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ def auxiliary_command(
351351
stderr = ""
352352

353353
max_anonymous_pipe_buffer_size = 65536
354+
355+
# This next line is where the hang occurs.
354356
aux = os.read(self.aux_stdout_rfd, max_anonymous_pipe_buffer_size)
355357
while aux[-1] != END_OF_READ:
356358
stdout += aux.decode()

shell_logger/shell_logger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from types import SimpleNamespace
2222
from typing import Iterator, List, Optional, Union
2323

24+
import snoop
25+
2426
from .html_utilities import (
2527
append_html,
2628
child_logger_card,
@@ -130,6 +132,7 @@ def append(path: Path) -> ShellLogger:
130132
with path.open("r") as jf:
131133
return json.load(jf, cls=ShellLoggerDecoder)
132134

135+
@snoop(depth=4)
133136
def __init__( # noqa: PLR0913
134137
self,
135138
name: str,

0 commit comments

Comments
 (0)