Ah, I misunderstood... you want the delta outputs muted? That's easy enough 
(albeit not really documented). Add the following to your environment.rb:

  ThinkingSphinx.suppress_delta_output = true if RAILS_ENV == 'production'

You can't put it in production.rb, because Thinking Sphinx isn't loaded then, 
and so Rails will load TS twice, the first time when you attempt to set the 
value, again when plugins/gems are initialised (and thus overwriting your 
custom value).

Cheers

-- 
Pat

On 14/12/2009, at 2:53 PM, mrmanishs wrote:

> Oh one more thing, this is the indexing log in error.log in my nginx
> file. It looks like this:
> 
> collected 3 docs, 0.0 MB
> collected 0 attr values
> sorted 0.0 Mvalues, 100.0% done
> sorted 0.0 Mhits, 100.0% done
> total 3 docs, 520 bytes
> total 0.014 sec, 35842 bytes/sec, 206.78 docs/sec
> total 8 reads, 0.000 sec, 9.6 kb/call avg, 0.0 msec/call avg
> total 12 writes, 0.000 sec, 2.9 kb/call avg, 0.0 msec/call avg
> rotating indices: succesfully sent SIGHUP to searchd (pid=13705).
> 
> Manish
> 
> On Dec 13, 10:46 pm, mrmanishs <[email protected]> wrote:
>> Sorry I didn't reply sooner...
>> 
>> I set my log level in environments/production.rb to :fatal, but it
>> still is logging all indexing activity.  Any other way to disable it?
>> 
>> I think it would be nice to have a flag to spit out logs or not,
>> because it may be easier to remove any unneeded noise during debugging
>> issues.
>> 
>> Manish
>> 
>> On Nov 25, 12:09 am, Pat Allan <[email protected]> wrote:
>> 
>>> Unfortunately there's no way to turn off any of Thinking Sphinx's  
>>> logging currently (well, beyond changing the overall logging level).  
>>> This matches ActiveRecord's behaviour, so not sure if I want to change  
>>> it... open to discussion though :)
>> 
>>> --
>>> Pat
>> 
>>> On 24/11/2009, at 3:33 PM,mrmanishswrote:
>> 
>>>> How can I disable logging for any model updates with Rails and
>>>> Thinking Sphinx?
>> 
>>>> --
>> 
>>>> You received this message because you are subscribed to the Google  
>>>> Groups "Thinking Sphinx" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to 
>>>> [email protected]
>>>> .
>>>> For more options, visit this group 
>>>> athttp://groups.google.com/group/thinking-sphinx?hl=en
>>>> .
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.


Reply via email to