Skip to content

Commit

Permalink
try to log stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
abtink committed Nov 1, 2024
1 parent 2f8dbcc commit 04b61b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pylibs/otns/cli/OTNS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
"""
Expand Down

0 comments on commit 04b61b5

Please sign in to comment.