Im writing an bash script to help the logging of our system running at AWS.
Simplified version of the command it runs in the end is aws logs tail | grep "term"
. Everything works fine but when I'm closing the log stream with ctrl + c, i get the following error:
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
Can i prevent that from happening, or is it something that should be caught in the aws logs
script?