Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Logs with tail=True hangs after about 100 entries #27

Closed
jtushman opened this issue Jan 23, 2013 · 2 comments
Closed

Logs with tail=True hangs after about 100 entries #27

jtushman opened this issue Jan 23, 2013 · 2 comments

Comments

@jtushman
Copy link

with the following requirements.txt:

requests==0.14.2
git+git://github.com/heroku/heroku.py.git

(note had to peg requests to get r = requests.get(r.content, verify=False, prefetch=False) to work)

and the following snipit:

 for line in self.app.logs(tail=True):
 print line

the script will print about 100 lines, then hang.

Any ideas on what I am doing wrong?

Thanks!

@jtushman
Copy link
Author

I also tried getting it to work with the latest version of requests

per: http://docs.python-requests.org/en/latest/user/advanced/#streaming-requests

In heroku/models.py:

I changed:

    r = requests.get(r.content, verify=False, prefetch=False)

to

    r = requests.get(r.content, stream=True) # Attempt 1
    r = requests.get(r.content, verify=False, stream=True) # Attempt 2

With no avail.

@edmorley
Copy link
Member

This project has been deprecated for some time, and is now being sunset.

We recommend that you use the maintained https://github.com/martyzz1/heroku3.py instead.

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants