[Buildbot-devel] Logging stderr in ShellCommand.createSummary

Axel Hecht l10n.moz at googlemail.com
Fri Aug 3 09:44:47 UTC 2007


Hrm, that should just work.

http://buildbot.net/trac/browser/buildbot/status/builder.py#L186 is
where the LogFile class is defined, and LogFile.getText() does get
both the STDOUT and STDERR chunks. If you use readlines(), though,
you'll end up with just STDOUT.

Does that help? If not, you should paste some code.

Axel

2007/8/2, Oz <oz at santacruzgames.com>:
> Hi again,
>
> I hate to bump, but before this gets buried, I need some answers! After
> digging through the archives I found the message "createSummary and
> stderr on Windows" which references the same problem, but without any
> response.
>
> Thanks again.
> =oz
>
> Oz wrote:
> > Hi,
> >
> > I have subclassed ShellCommand in order to make a custom build step and
> > create a custom log of it. However, in my implementation of
> > createSummary, the "log" parameter that is passed in does not contain
> > any stderr output. Setting want_stderr to True on the class does not
> > appear to have any effect. The weird part is that the default "stdio"
> > log _does_ contain stderr, highlighted in red.
> >
> > Is there any way to route stderr into the same "log" that is given to
> > createSummary? Thanks.
> >
> > =oz
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >>  http://get.splunk.com/
> > _______________________________________________
> > Buildbot-devel mailing list
> > Buildbot-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/buildbot-devel
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>




More information about the devel mailing list