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/04/06 21:24:00 UTC

cvs commit: gump gumpy.py

ajack       2004/04/06 12:24:00

  Modified:    .        gumpy.py
  Log:
  When fails move gumpy.log to log directory (for remote review).
  
  Revision  Changes    Path
  1.14      +13 -1     gump/gumpy.py
  
  Index: gumpy.py
  ===================================================================
  RCS file: /home/cvs/gump/gumpy.py,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- gumpy.py	2 Apr 2004 16:48:07 -0000	1.13
  +++ gumpy.py	6 Apr 2004 19:24:00 -0000	1.14
  @@ -325,7 +325,19 @@
           # others it won't.
           #
           # Cat log if failed...
  -        catFile(sys.stdout, logFile, logTitle)
  +        published=0
  +        if logdir:
  +            publishedLogFile=os.path.abspath(os.path.join(logdir,'gumpy.log'))
  +            try:
  +                publishedLog=open(publishedLogFile,'w',0) # Unbuffered...
  +                catFile(publishedLog, logFile, logTitle)    
  +                publishedLog.close()
  +                published=1
  +            except:
  +                published=0
  +                
  +        if not published:
  +            catFile(sys.stdout, logFile, logTitle)
           
           if mailserver and mailport and mailto and mailfrom and logurl:
               
  
  
  

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