products/CPSRSS

changeset 218:a94ff92c1518 authforward

Last remnant of zLOG and signing
author Georges Racinet on purity.racinet.fr <georges@racinet.fr>
date Thu, 15 Jul 2010 14:19:31 +0200
parents e45ebb5d4820
children 19a59f18937e
files RSSChannel.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line diff
     1.1 --- a/RSSChannel.py
     1.2 +++ b/RSSChannel.py
     1.3 @@ -1,6 +1,7 @@
     1.4  # (C) Copyright 2003-2008 Nuxeo SAS <http://nuxeo.com>
     1.5  # Authors:
     1.6  # Emmanuel Pietriga (ep@nuxeo.com)
     1.7 +# Georges Racinet <georges@racinet.fr> (user dependent caches)
     1.8  #
     1.9  # This program is free software; you can redistribute it and/or modify
    1.10  # it under the terms of the GNU General Public License version 2 as published
    1.11 @@ -20,8 +21,6 @@
    1.12  """The RSS tool manages RSS channels and refreshes them.
    1.13  """
    1.14  
    1.15 -from zLOG import LOG, DEBUG
    1.16 -
    1.17  import logging
    1.18  import time
    1.19  import urllib
    1.20 @@ -287,9 +286,8 @@
    1.21                  data = feedparser.parse(url, None, None, handlers=handlers)
    1.22          except SGMLParseError, err:
    1.23              data = {'channel': {}, 'items': []}
    1.24 -            LOG('RSSChannel Error', DEBUG,
    1.25 -                'RSS/SGML parsing error while retrieving feed\n'
    1.26 -                +str(url)+'\n'+str(err))
    1.27 +            logger.exception('RSS/SGML parsing error while retrieving feed %s',
    1.28 +                             url)
    1.29          except URLError, err:
    1.30              data = {'channel': {}, 'items': []}
    1.31              if isinstance(getattr(err, 'reason', None), socket.timeout):