From de5ec9995426ac5570d06076ac3ec7483773937c Mon Sep 17 00:00:00 2001 From: Roland Date: Thu, 10 Mar 2022 09:28:34 -0700 Subject: [PATCH] Logging after process is complete. --- modules/map/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/map/lib.py b/modules/map/lib.py index 1f08a3b5..4df762a4 100644 --- a/modules/map/lib.py +++ b/modules/map/lib.py @@ -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)