1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-27 03:26:50 +03:00

nixos/test-driver: use function instead of var

Use a proper function to enable serial log printing instead of setting
class member variables directly.
This commit is contained in:
Stefan Hertrampf 2024-04-08 12:10:19 +02:00
parent c2c525f5bc
commit a6160e5763
2 changed files with 5 additions and 2 deletions

View file

@ -24,6 +24,9 @@ class Logger:
self._print_serial_logs = True
def print_serial_logs(self, enable: bool) -> None:
self._print_serial_logs = enable
@staticmethod
def _eprint(*args: object, **kwargs: Any) -> None:
print(*args, file=sys.stderr, **kwargs)