[Buildbot-devel] [Buildbot]how to attach Only few nos of lines in attached logfile
Marcus Lindblom
macke at yar.nu
Wed Apr 14 09:05:21 UTC 2010
On 2010-04-14 10:05, Ravindra Parihar wrote:
> Hi All,
>
> I only want few no. of lines in the log file after the build
> completion. Currently I am receiving log of 1 MB which is too high.
>
> Please suggest how we can cut the no. of lines in the log file and
> attach to the mail.
I add the log files inline in the mail using python slice syntax.
I.e. to get last 10 lines of a file with line-breaks between:
'\n'.join(loglines[-10:])
Cheers,
/Marcus
More information about the devel
mailing list