File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/seclab_taskflow_agent Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 55import asyncio
66from .path_utils import log_file_name
77
8- logging .basicConfig (
9- level = logging .DEBUG ,
10- format = '%(asctime)s - %(levelname)s - %(message)s' ,
11- filename = log_file_name ('render_stdout.log' ),
12- filemode = 'a'
13- )
14-
158async_output = {}
169async_output_lock = asyncio .Lock ()
1710
11+ LOG_FILE = log_file_name ('render_stdout.log' )
12+
1813async def flush_async_output (task_id : str ):
1914 async with async_output_lock :
2015 if task_id not in async_output :
@@ -40,5 +35,6 @@ async def render_model_output(data: str,
4035 data = "** 🤖✏️ Gathering output from async task ... please hold\n "
4136 if data :
4237 if log :
43- logging .debug (data )
38+ with open (LOG_FILE , 'a' ) as f :
39+ f .write (data )
4440 print (data , end = "" , flush = True )
You can’t perform that action at this time.
0 commit comments