Skip to content

Commit

Permalink
adding docstring to subprocess log fx
Browse files Browse the repository at this point in the history
  • Loading branch information
iannesbitt committed Apr 15, 2023
1 parent b8c98a4 commit a00fb0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pdgpoints/lastools_iface.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
from . import utils

def log_subprocess_output(pipe, verbose=False):
'''
Log the output from a lastools subprocess.
:param subprocess.PIPE pipe: The pipe to listen to
:param bool verbose: Whether to log more messages
'''
L.propagate = verbose
try:
for line in iter(pipe.readline, b''): # b'\n'-separated lines
Expand Down

1 comment on commit a00fb0d

@iannesbitt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for #6

Please sign in to comment.