You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2004/05/05 15:58:24 UTC

cvs commit: gump/python/gump/utils __init__.py

ajack       2004/05/05 06:58:24

  Modified:    python/gump/syndication rss.py atom.py
               .        gumpy.py
               python/gump/utils __init__.py
  Log:
  Some logging changes, to try to get inside this beast.
  
  Revision  Changes    Path
  1.22      +4 -4      gump/python/gump/syndication/rss.py
  
  Index: rss.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/syndication/rss.py,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- rss.py	26 Apr 2004 16:13:56 -0000	1.21
  +++ rss.py	5 May 2004 13:58:24 -0000	1.22
  @@ -239,7 +239,7 @@
           log.debug("RSS Newsfeed written to : " + self.rssFile);          
           
       def serialize(self):
  -        log.debug("RSS Newsfeed to : " + self.rssFile);         
  +        log.info("RSS Newsfeed to : " + self.rssFile);         
           self.rssStream = open(self.rssFile,'w')
           
           self.startRSS()
  
  
  
  1.14      +4 -5      gump/python/gump/syndication/atom.py
  
  Index: atom.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/syndication/atom.py,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- atom.py	16 Apr 2004 17:28:43 -0000	1.13
  +++ atom.py	5 May 2004 13:58:24 -0000	1.14
  @@ -154,8 +154,7 @@
   """)
                   
       def serialize(self):
  -        log.debug("Atom Feed to : " + self.file);         
  -        
  +        log.inf("Atom Feed to : " + self.file);         
           stream = open(self.file,'w')
           
           modified=time.strftime('%Y-%m-%dT%H:%M:%SZ', gmtime())
  
  
  
  1.28      +1 -1      gump/gumpy.py
  
  Index: gumpy.py
  ===================================================================
  RCS file: /home/cvs/gump/gumpy.py,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- gumpy.py	30 Apr 2004 18:09:12 -0000	1.27
  +++ gumpy.py	5 May 2004 13:58:24 -0000	1.28
  @@ -146,7 +146,7 @@
               fcntl.flock(lock.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
           except:            
               failed=1
  -            ifo=', and is locked.'
  +            info=', and is locked.'
           
       else:
           if os.path.exists(lockFile):
  
  
  
  1.37      +6 -4      gump/python/gump/utils/__init__.py
  
  Index: __init__.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/utils/__init__.py,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- __init__.py	5 May 2004 12:59:38 -0000	1.36
  +++ __init__.py	5 May 2004 13:58:24 -0000	1.37
  @@ -30,6 +30,7 @@
   from gump  import log
   from gump.core.config import default, setting
   
  +
   def gumpSafeName(name):
     """returns a file system safe name"""  
     #
  @@ -395,11 +396,12 @@
   #    except Exception, details:        
   #        if not os.name == 'dos' and not os.name == 'nt':
   #            log.error("Failed get resource utilization." \
  -#                        + " : " + str(details), exc_info=1)
  -        
  +#                   
   def invokeGarbageCollection():
       try:
           import gc
  -        gc.collect()
  +        unreachable = gc.collect()
  +        if unreachable:
  +            log.debug('Objects Unreachable by GC : ' + `unreachable`)
       except:
  -        raise
  +        raise
  \ No newline at end of file
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org