[Ovirt-devel] Re: got it!

Steve Linabery slinabery at redhat.com
Tue Jul 29 15:59:32 UTC 2008


On Tue, Jul 29, 2008 at 11:37:54AM -0400, Hugh O. Brock wrote:
> On Tue, Jul 29, 2008 at 10:00:33AM -0500, Steve Linabery wrote:
> > 
> > In graph_controller.rb:
> > 
> >     elsif target == "memory"
> >     dd "ding 9"
> >         #increments = @pool.hosts.total_memory / 512
> >         0.upto(@pool.hosts.total_memory) { |x| 
> > 	    if x % 1024 == 0
> >                scale.push((x / 1024).to_s) # divide by 1024 to convert to MB
> > 	           end
> >         }
> > 
> > (the dd is my debugging method)
> > 
> > Looks like this is infinite-looping. I'll just disable this block while I'm fiddling with this code since I'm going to rewrite much of this file anyway (as opposed to patching this).
> 
> Well done my man. 
> 
> Did you get your logging thing worked out finally? I know 0 about Rails logging so I couldn't help you there.
> 
> --H
> 

For debugging purposes in this case, I found it easier to just open a file for append and make sure that it flushes every write. So, no, I did not figure out how to make Rails' logger autoflush.

S




More information about the ovirt-devel mailing list