[users at bb.net] 0.9.7: ShellCommend log observer

Pierre Tardy tardyp at gmail.com
Thu Aug 24 18:43:50 UTC 2017


Hi Drago,

There is no supported way to add Logobserver outside of subclassing.

This is because steps are actually re-instanciated at each build, so the
step objects that you manipulate in master.cfg are actually not used.
Buildbot only keep their class and the list of parameters used to
instanciate them.

http://buildbot.readthedocs.io/en/latest/manual/customization.html#adding-logobservers

Pierre

On Thu, Aug 24, 2017 at 12:37 PM Drago Trusk <drago.trusk at gmail.com> wrote:

> Setting observer on ShellCommand doesn't seem to work since
> during _connectPendingLogObservers of BuildStep logs will be empty.
>
> This means that for an example:
>
> s = ShellCommand(...)
> s.addLogObserver('stdio', ...)
>
>
> won't actually do anything since observer won't get subscribed to stdio.
>
> What am I missing here to observe stdio of ShellCommand (that is without
> subclassing solution)?
>
> Thanks,
> Drago
> _______________________________________________
> users mailing list
> users at buildbot.net
> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170824/a36da090/attachment.html>


More information about the users mailing list