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/10 23:34:09 UTC
cvs commit: gump gumpy.py
ajack 2004/05/10 14:34:09
Modified: . gumpy.py
Log:
If is a TTY cat log to screen.
Revision Changes Path
1.29 +8 -2 gump/gumpy.py
Index: gumpy.py
===================================================================
RCS file: /home/cvs/gump/gumpy.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- gumpy.py 5 May 2004 13:58:24 -0000 1.28
+++ gumpy.py 10 May 2004 21:34:09 -0000 1.29
@@ -418,8 +418,14 @@
published=1
except:
published=0
-
- if not published:
+
+ # Cat to screen (if running to screen)
+ tty=0
+ try:
+ tty=sys.stdout.isatty()
+ except:
+ pass
+ if tty or 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