title: Trouble with duplicate lines of logs in log file
body: <p>I've been trying to get this working correctly all day, its nearly complete just a strange issue I'm getting. Every result that is found in the search query gets logged as expected but the first result gets logged once, the second gets logged twice, the third gets logged three times etc.</p>
  
  <p>Any ideas how to get rid of the duplicates? <a href="http://postimage.org/image/s0uqsh6dd/" rel="nofollow">Example of logs</a></p>
  
  <pre><code>#!/usr/bin/python
  import urllib
  import simplejson 
  import logging
  from logging.handlers import SysLogHandler
  
  query = urllib.urlencode({'q' : 'test'})
  url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;%s' \
        % (query)
  search_results = urllib.urlopen(url)
  json = simplejson.loads(search_results.read())
  results = json['responseData']['results']
  for i in results:
      logger = logging.getLogger()
      logger.addHandler(SysLogHandler(address=('192.168.0.2', 514)))
      logger.addHandler(logging.FileHandler("hits.log"))
      logging.warn(i['url'])
      print i['url']
  </code></pre>