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

Broken Pipe (noisy exit) #122

Closed
samba opened this issue Mar 30, 2017 · 1 comment
Closed

Broken Pipe (noisy exit) #122

samba opened this issue Mar 30, 2017 · 1 comment

Comments

@samba
Copy link

samba commented Mar 30, 2017

When passing through less and similar, the pipe may be closed before awslogs completes its output, in which case it gets noisy.

Traceback (most recent call last):
  File "/var/task/service/kinesis.py", line 85, in parseRecords
    message = json.loads(payload.strip())
  File "/usr/lib64/python2.7/json/__init__.py", line 339, in loads

Version: 0.8.0
Python: 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
boto3 version: 1.4.4
Platform: Darwin-16.4.0-x86_64-i386-64bit
Config: {'output_timestamp_enabled': False, 'output_group_enabled': True, 'end': None, 'log_group_name': 'REDACTED', 'log_stream_name': 'ALL', 'aws_region': 'us-west-2', 'watch': False, 'aws_access_key_id': 'SENSITIVE', 'start': '14d', 'aws_profile': 'SENSITIVE', 'filter_pat tern': 'ERROR', 'aws_secret_access_key': 'SENSITIVE', 'output_ingestion_time_enabled': False, 'query': None, 'func': 'list_logs', 'aws_session_token': 'SENSITIVE', 'color_enabled': True, 'output_stream_enabled': True}
Args: ['/usr/local/bin/awslogs', 'get', '-s', '14d', 'REDACTED', '--filter-pattern=ERROR']

Traceback (most recent call last):
  File "/Users/samba/Library/Python/2.7/lib/python/site-packages/awslogs/bin.py", line 172, in main
    getattr(logs, options.func)()
  File "/Users/samba/Library/Python/2.7/lib/python/site-packages/awslogs/core.py", line 187, in list_logs
    consumer()
  File "/Users/samba/Library/Python/2.7/lib/python/site-packages/awslogs/core.py", line 185, in consumer
    sys.stdout.flush()
IOError: [Errno 32] Broken pipe
@jorgebastida
Copy link
Owner

Fixed #128

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

2 participants