fix: logging

This commit is contained in:
Vlad Stan
2026-02-09 08:53:33 +02:00
parent d40515e1ba
commit 561d0976b3
+9 -5
View File
@@ -150,12 +150,16 @@ class LightsparkSparkWallet(Wallet):
)
print("### Spark sidecar DONE")
await asyncio.to_thread(
self._log_process_output, process
)
# if process.stdout:
# for line in process.stdout:
# logger.info(f"Spark: {line}", end="")
# else:
# logger.warning(" No output captured for Spark sidecar.")
def _log_process_output(self, process: subprocess.Popen):
if process.stdout:
for line in process.stdout:
logger.info(f"Spark: {line}", end="")
else:
logger.warning(" No output captured for Spark sidecar.")
async def cleanup(self):
try: