gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump/python/gump/utils __init__.py http.py
Date Mon, 23 Feb 2004 23:11:22 GMT
ajack       2004/02/23 15:11:22

  Modified:    python/gump/utils __init__.py http.py
  Log:
  1) Still trying to work w/ resource.getrusage (Linux test box w/ DNS woes so no CVS access)
  2) Put HTTP into same log as rest of gump.
  
  Revision  Changes    Path
  1.22      +4 -4      jakarta-gump/python/gump/utils/__init__.py
  
  Index: __init__.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/utils/__init__.py,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- __init__.py	23 Feb 2004 23:02:57 -0000	1.21
  +++ __init__.py	23 Feb 2004 23:11:22 -0000	1.22
  @@ -366,7 +366,7 @@
       
   def logResourceUtilization(message=None,):
       try:
  -        from resource import getrusage
  +        import resource
           
           if not message:
               message=''
  
  
  
  1.4       +2 -4      jakarta-gump/python/gump/utils/http.py
  
  Index: http.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/utils/http.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- http.py	9 Jan 2004 19:57:19 -0000	1.3
  +++ http.py	23 Feb 2004 23:11:22 -0000	1.4
  @@ -91,9 +91,7 @@
   # python-2.3 or http://www.red-dove.com/python_logging.html
   import logging
   
  -# base gump logger
  -log = logging.getLogger(__name__)
  -
  +from gump import log
   from gump.config import dir, switch, setting
   
   ###############################################################################
  @@ -105,7 +103,7 @@
   #
   class GumpURLopener(urllib.FancyURLopener):
       def __init__(self, *args):
  -        self.version = "Jakarta-Gump/"+setting.version
  +        self.version = "Apache-Gump/"+setting.version
           urllib.FancyURLopener.__init__(self, *args)
   
   urllib._urlopener = GumpURLopener()
  
  
  

Mime
View raw message