okay, so contents_for_display in build.rb is what you want to look at, it
currently looks like this :

  def contents_for_display(file)
    return '' unless File.file?(file) && File.readable?(file)
    if File.size(file) < 100 * 1024
      File.read(file)
    else
      contents = File.read(file, 100 * 1024)
      "#{file} is over 100 kbytes - too big to display in the dashboard,
output is truncated\n\n\n#{contents}"
    end
  end

and I believe alexey added this code to protect against insanely long build
logs that could bring down the system.  what I would do is monkey patch
Build by doing something like this

class Build
  def contents_for_display(file)
    ...
  end
end

somewhere either in your site_config.rb file or if you only have one
project, even in your cruise_config.rb file.

I think we have the right behavior in the general case, but you have a
special case, and it's appropriate for you to customize the product to your
needs.

Jeremy

On Sun, May 25, 2008 at 8:59 PM, Manish Sapariya <[EMAIL PROTECTED]> wrote:

> Hi,
> its in webui when I click the build log, thats when it shows the
> partial logs. With 1.2 it shows the complete build log file when I
> click build log on GUI. I have not calculated but if looks like there
> is some size limitation on how much data from file to show, but I am
> clueless as what causes that.
>
> Please let me know if I can provide more info.
> Thanks and Regards,
> Manish
>
>
> Chad Woolley wrote:
>
>> On Sun, May 25, 2008 at 7:53 AM, John D. Hume <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Is the truncation in the build log file itself or just in the on-screen
>>> rendering?
>>>
>>
>> Pretty sure it's just the web ui.  I believe you can even click the
>> link at the bottom of the build page to see the full log?
>> _______________________________________________
>> Cruisecontrolrb-users mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>>
>>  _______________________________________________
> Cruisecontrolrb-users mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
>
_______________________________________________
Cruisecontrolrb-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to