From 6b4865af8dd507573d9e2ae5035bf6ad54eb9130 Mon Sep 17 00:00:00 2001 From: Yury Kurlykov Date: Tue, 28 Apr 2020 04:38:13 +1000 Subject: [PATCH] Print AST as info Debug channel barely suits for this case. --- jasminesnake/__main__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jasminesnake/__main__.py b/jasminesnake/__main__.py index 26df9de..fe5d076 100644 --- a/jasminesnake/__main__.py +++ b/jasminesnake/__main__.py @@ -74,8 +74,7 @@ def main(): ast_tree = from_parse_tree(tree) ascii_ast = to_ascii_tree(ast_tree) - logging.debug("Got an AST!") - logging.debug(ascii_ast) + logging.info("Got an AST!\n%s", ascii_ast) # TODO: run logic sys.exit(0) @@ -99,8 +98,8 @@ def main(): ast_tree = from_parse_tree(tree) ascii_ast = to_ascii_tree(ast_tree) - logging.debug("Got an AST!") - logging.debug(ascii_ast) + logging.info("Got an AST!") + logging.info(ascii_ast) # TODO: run logic except EOFError: print("Ctrl-D received, shutting down...")