Open ElieAljalbout opened 1 year ago
Same problem. When i run multiple smac instances, this could be really annoying.
I struggled to find these outputs are caused by package pysc2
, and there was already an issue about it.
For me, i update the pysc2.lib.sc_process.StarcraftProcess()._launch()
as i proposed in the issue above.
Meanwhile, I also change the source code of smac
in StarCraft2Env()._launch()
to disable the logging info:
self._sc2_proc = self._run_config.start(
window_size=self.window_size, want_rgb=False, stderr=subprocess.DEVNULL
)
Additionally, if one wants to retrace these outputs, I found pysc2
already supports strace
.
The only thing is to set flags.sc2_strace=True
defined at sc_process.py
.
is it somehow possible to disable or at least redirect all the logging outputs so that they don't dominate the terminal? I'm talking about prints such as the following: