From 04b61b5b450e5b7f94410c3d1633d967d59ad421 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 1 Nov 2024 14:15:44 -0700 Subject: [PATCH] try to log stderr --- pylibs/otns/cli/OTNS.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pylibs/otns/cli/OTNS.py b/pylibs/otns/cli/OTNS.py index 81c162d5..780483a4 100644 --- a/pylibs/otns/cli/OTNS.py +++ b/pylibs/otns/cli/OTNS.py @@ -29,6 +29,7 @@ import logging import os import shutil +import sys import signal import subprocess from typing import List, Union, Optional, Tuple, Dict, Any, Collection @@ -58,8 +59,9 @@ def _launch_otns(self) -> None: self._otns = subprocess.Popen([self._otns_path] + self._otns_args, bufsize=16384, stdin=subprocess.PIPE, - stdout=subprocess.PIPE) - logging.info("otns process launched: %s", self._otns) + stdout=subprocess.PIPE, + stderr=sys.stderr) + logging.info("otns process launched: %s - (ABTIN with stderr)", self._otns) def close(self) -> None: """