Skip to content
Snippets Groups Projects
Commit 3473117cce12 authored by jfp's avatar jfp
Browse files

Update ovms.ptd.run

parent 4a21e2cca2bf
Branches
No related tags found
No related merge requests found
......@@ -21,7 +21,9 @@
# get a logger specific for this module
logger = logging.getLogger(__name__)
print_if_verbose: Callable
def print_if_verbose(*args, **kwargs):
return None
def get_page_size() -> int:
......@@ -42,7 +44,6 @@
exit_reader: threading.Event,
exit_reader_done: threading.Event,
):
global print_if_verbose
exit_reader_done.clear()
r: str | None = None
while True:
......@@ -115,7 +116,6 @@
wait_for_value(qread, ptd.prompt) # wait for prompt
return f"{cmd} executed"
global print_if_verbose
args: argparse.Namespace
logging_format = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
logging.basicConfig(filename="/dev/null", level=logging.INFO, format=logging_format)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment