mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-24 17:06:18 -05:00
Logging after process is complete.
This commit is contained in:
parent
ac56e29afa
commit
de5ec99954
1 changed files with 1 additions and 1 deletions
|
|
@ -110,9 +110,9 @@ async def import_pbf(pbf: Path):
|
|||
logger.debug(f'Running import script: {cmd}')
|
||||
start = now()
|
||||
proc = await asyncio.create_subprocess_shell(cmd, stderr=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE)
|
||||
logger.debug(f'Import of {pbf} took {now() - start}')
|
||||
|
||||
stdout, stderr = await proc.communicate()
|
||||
logger.debug(f'Import of {pbf} took {now() - start}')
|
||||
if proc.returncode != 0:
|
||||
for line in stdout.decode().splitlines():
|
||||
logger.info(line)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue