praw-dev/praw — pull request #103 by sente (2012-07-10 13:55:43+00:00)
Title: Added an option to log the underlying http requests being made, useful for debugging/learning

While learning about the API and debugging I've found it helpful to see the underlying http requests as they're made.

I would be happy to build this out to use more legitimate logging techniques, please let me know what your thoughts are. I did it this way because it was quick & easy and the project doesn't use python's `logging` modules anywhere else.

Here's what my IPython terminal looks like with the logging:

```
In [14]: top5 = list(r.get_subreddit('funny').get_hot(limit=5))
retrieving: http://www.reddit.com/r/funny/.json
data: None

In [15]: top5
Out[15]:
[,
,
,
,
]

In [16]: print len(top5[0].all_comments_flat)
retrieving: http://www.reddit.com/r/funny/comments/wbbaf/well_played_simpsons_ad_well_played/.json
data: None
retrieving: http://www.reddit.com/api/morechildren/.json
data: r=funny&link_id=t3_wbbaf&uh=5dq5xo1l2t1de3251a5922b4b27b9a3a5b9ce95758fa354e29&api_type=json&children=c5bwsba%2Cc5bwlpb%2Cc5bx076%2Cc5bx4yw
retrieving: http://www.reddit.com/api/morechildren/.json
data: r=funny&link_id=t3_wbbaf&uh=5dq5xo1l2t1de3251a5922b4b27b9a3a5b9ce95758fa354e29&api_type=json&children=c5bygra
retrieving: http://www.reddit.com/api/morechildren/.json
data: r=funny&link_id=t3_wbbaf&uh=5dq5xo1l2t1de3251a5922b4b27b9a3a5b9ce95758fa354e29&api_type=json&children=c5bxzep
203

In [17]:
```