From 9d118c7fc2cdc26bcf7fcf7fee53f3dc0cf53769 Mon Sep 17 00:00:00 2001 From: Viacheslav Kukushkin Date: Mon, 12 Feb 2024 11:02:30 +0300 Subject: [PATCH] Save everything printed to UI to debug file also --- cli/medperf/ui/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/medperf/ui/cli.py b/cli/medperf/ui/cli.py index 4270e7efc..af4b9b4ad 100644 --- a/cli/medperf/ui/cli.py +++ b/cli/medperf/ui/cli.py @@ -1,3 +1,5 @@ +import logging + import typer from getpass import getpass from yaspin import yaspin @@ -39,6 +41,7 @@ def print_warning(self, msg: str): self.__print(msg) def __print(self, msg: str = ""): + logging.info(msg) if self.is_interactive: self.spinner.write(msg) else: