Re: Python Requests logging 401 immediately before 200

2015-02-20 Thread Mark Lawrence
On 20/02/2015 17:16, Zach Dunlap wrote: Hi everyone, I'm using MarkLogic A name that frightens me to death, what idiot thought of that? :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailm

Re: Python Requests logging 401 immediately before 200

2015-02-20 Thread Zach Dunlap
On Friday, February 20, 2015 at 12:31:00 PM UTC-5, Chris Angelico wrote: > On Sat, Feb 21, 2015 at 4:16 AM, Zach Dunlap wrote: > > INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection > > (1): localhost > > DEBUG:requests.packages.urllib3.connectionpool:"GET > > /v1/documen

Re: Python Requests logging 401 immediately before 200

2015-02-20 Thread Chris Angelico
On Sat, Feb 21, 2015 at 4:16 AM, Zach Dunlap wrote: > INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection > (1): localhost > DEBUG:requests.packages.urllib3.connectionpool:"GET > /v1/documents?uri=000248e4331d4db5856df8fd427b3cdb.xml HTTP/1.1" 401 211 > DEBUG:requests.pack

Python Requests logging 401 immediately before 200

2015-02-20 Thread Zach Dunlap
Hi everyone, I'm using MarkLogic and have a Python script set up to check for documents using Requests (http://docs.python-requests.org/en/latest/) and I have logging included in the script. I have logging set to the DEBUG level. When I set the script to simple search and return the HTTP statu