<div dir="ltr">Hi Drago,<div><br></div><div>There is no supported way to add Logobserver outside of subclassing.</div><div><br></div><div>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.</div><div><br></div><div><a href="http://buildbot.readthedocs.io/en/latest/manual/customization.html#adding-logobservers">http://buildbot.readthedocs.io/en/latest/manual/customization.html#adding-logobservers</a><br></div><div><br></div><div>Pierre<br><br><div class="gmail_quote"><div dir="ltr">On Thu, Aug 24, 2017 at 12:37 PM Drago Trusk <<a href="mailto:drago.trusk@gmail.com">drago.trusk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Setting observer on ShellCommand doesn't seem to work since during _connectPendingLogObservers of BuildStep logs will be empty.</div><div><br></div><div>This means that for an example:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>s = ShellCommand(...)</div><div>s.addLogObserver('stdio', ...)</div></blockquote><div><br></div><div>won't actually do anything since observer won't get subscribed to stdio. </div><div><br></div><div>What am I missing here to observe stdio of ShellCommand (that is without subclassing solution)?</div><div><br></div>Thanks, <div>Drago</div></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div></div></div>