Skip to content

Commit 7515da8

Browse files
committed
revert render_stdout logging
1 parent 7a5563a commit 7515da8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/seclab_taskflow_agent/render_utils.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,11 @@
55
import asyncio
66
from .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-
158
async_output = {}
169
async_output_lock = asyncio.Lock()
1710

11+
LOG_FILE = log_file_name('render_stdout.log')
12+
1813
async 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)

0 commit comments

Comments
 (0)