From 57cdbc3b1b4990a94a6318c6b042bc4d516b7776 Mon Sep 17 00:00:00 2001 From: "J. Foederer" <32476108+JFoederer@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:55:28 +0200 Subject: [PATCH] Include debug logging in Robot log.html (#148) * Include debug logging in Robot log.html --- src/robotkernel/executors.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/robotkernel/executors.py b/src/robotkernel/executors.py index 08ce601..c300885 100644 --- a/src/robotkernel/executors.py +++ b/src/robotkernel/executors.py @@ -30,6 +30,8 @@ import types import uuid +LOGLEVEL = "DEBUG:INFO" + def execute_python(kernel: DisplayKernel, code: str, module: str, silent: bool): """Execute Python code str in the context of named module. @@ -275,7 +277,12 @@ def run_robot_suite( if progress is not None: sys.__stdout__ = progress try: - results = suite.run(outputdir=path, stdout=stdout, listener=listeners) + results = suite.run( + outputdir=path, + stdout=stdout, + listener=listeners, + loglevel=LOGLEVEL, + ) finally: if progress is not None: sys.__stdout__ = progress.stdout @@ -314,6 +321,7 @@ def run_robot_suite( log=os.path.join(path, "log.html"), report=os.path.join(path, "report.html"), rpa=getattr(suite, "rpa", False), + loglevel=LOGLEVEL, ) with open(os.path.join(path, "log.html"), "rb") as fp: