[Buildbot-commits] buildbot/buildbot/process buildstep.py, 1.10, 1.11

Brian Warner warner at users.sourceforge.net
Sun Mar 23 00:36:58 UTC 2008


Update of /cvsroot/buildbot/buildbot/buildbot/process
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7272/buildbot/process

Modified Files:
	buildstep.py 
Log Message:
[project @ allow LogLineObserver to handle longer lines. Closes #201.]

Original author: warner at lothar.com
Date: 2008-03-23 00:35:51+00:00

Index: buildstep.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/process/buildstep.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- buildstep.py	21 Mar 2008 03:53:36 -0000	1.10
+++ buildstep.py	23 Mar 2008 00:36:56 -0000	1.11
@@ -400,6 +400,15 @@
         self.stderrParser.lineReceived = self.errLineReceived
         self.stderrParser.transport = self
 
+    def setMaxLineLength(self, max_length):
+        """
+        Set the maximum line length: lines longer than max_length are
+        dropped.  Default is 16384 bytes.  Use sys.maxint for effective
+        infinity.
+        """
+        self.stdoutParser.MAX_LENGTH = max_length
+        self.stderrParser.MAX_LENGTH = max_length
+
     def outReceived(self, data):
         self.stdoutParser.dataReceived(data)
 





More information about the Commits mailing list