datamade / django-councilmatic

:heartpulse: Django app providing core functions for *.councilmatic.org
http://councilmatic.org
MIT License
26 stars 16 forks source link

Include OCD API URLs in logging when DEBUG mode is on #52

Open ErnieAtLYD opened 8 years ago

ErnieAtLYD commented 8 years ago

Since we're implementing Miami's version of Councilmatic we are also working with the scraper API in development. There have been times when we wanted to check what the API is pulling in but with no way to log the URLs that can be difficult. Maybe in loaddata.py, something like:

            if DEBUG:
                print(full_url) # before requests.get(url) is invoked