Skip to content

Commit

Permalink
Save everything printed to UI to debug file also
Browse files Browse the repository at this point in the history
  • Loading branch information
VukW committed Feb 12, 2024
1 parent b934990 commit 9d118c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/medperf/ui/cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import logging

import typer
from getpass import getpass
from yaspin import yaspin
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9d118c7

Please sign in to comment.