Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piping output broken. #8

Open
ghost opened this issue Apr 9, 2022 · 0 comments
Open

Piping output broken. #8

ghost opened this issue Apr 9, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 9, 2022

lockywolf@laptop:~/OfficialRepos/2ping>timeout --signal=INT 10s  ./2ping -q <censored> | grep 'ping losses'
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib64/python3.9/logging/__init__.py", line 1087, in emit
    self.flush()
  File "/usr/lib64/python3.9/logging/__init__.py", line 1067, in flush
    self.stream.flush()
BrokenPipeError: [Errno 32] Broken pipe
Call stack:
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 16, in <module>
    module_init()
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 13, in module_init
    sys.exit(twoping.cli.main(sys.argv))
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1664, in main
    return t.run()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1372, in run
    self.print_stats()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1183, in print_stats
    self.print_stats_sock(sock_class, time_end, short=short)
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1249, in print_stats_sock
    self.logger.info(
Message: '--- <censored> (<censored>) 2ping statistics ---'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib64/python3.9/logging/__init__.py", line 1087, in emit
    self.flush()
  File "/usr/lib64/python3.9/logging/__init__.py", line 1067, in flush
    self.stream.flush()
BrokenPipeError: [Errno 32] Broken pipe
Call stack:
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 16, in <module>
    module_init()
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 13, in module_init
    sys.exit(twoping.cli.main(sys.argv))
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1664, in main
    return t.run()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1372, in run
    self.print_stats()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1183, in print_stats
    self.print_stats_sock(sock_class, time_end, short=short)
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1254, in print_stats_sock
    self.logger.info(
Message: '10 pings transmitted, 7 received, 30% ping loss, time 9s 647ms'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib64/python3.9/logging/__init__.py", line 1087, in emit
    self.flush()
  File "/usr/lib64/python3.9/logging/__init__.py", line 1067, in flush
    self.stream.flush()
BrokenPipeError: [Errno 32] Broken pipe
Call stack:
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 16, in <module>
    module_init()
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 13, in module_init
    sys.exit(twoping.cli.main(sys.argv))
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1664, in main
    return t.run()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1372, in run
    self.print_stats()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1183, in print_stats
    self.print_stats_sock(sock_class, time_end, short=short)
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1267, in print_stats_sock
    self.logger.info(
Message: '0 outbound ping losses (0%), 0 inbound (0%), 3 undetermined (30%)'
Arguments: ()
--- Logging error ---
Traceback (most recent call last):
  File "/usr/lib64/python3.9/logging/__init__.py", line 1087, in emit
    self.flush()
  File "/usr/lib64/python3.9/logging/__init__.py", line 1067, in flush
    self.stream.flush()
BrokenPipeError: [Errno 32] Broken pipe
Call stack:
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 16, in <module>
    module_init()
  File "/home/lockywolf/OfficialRepos/2ping/./2ping", line 13, in module_init
    sys.exit(twoping.cli.main(sys.argv))
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1664, in main
    return t.run()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1372, in run
    self.print_stats()
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1183, in print_stats
    self.print_stats_sock(sock_class, time_end, short=short)
  File "/home/lockywolf/OfficialRepos/2ping/twoping/cli.py", line 1287, in print_stats_sock
    self.logger.info(
Message: 'rtt min/avg/ewma/max/mdev = 301.274/971.144/1086.439/1597.504/529.781 ms'
Arguments: ()
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe

lockywolf@laptop:~/OfficialRepos/2ping>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants