#124 ✓ invalid
Paul Canavese

Logging not working (at least from gem)

Reported by Paul Canavese | June 10th, 2010 @ 08:58 PM | in Bugs

The solr_logging file is not required, so it never takes effect. I presume the appropriet fix is to add the following to rails.rb. That fixes it for me.

require File.join(File.dirname(FILE), 'rails', 'solr_logging')

Thanks!

Comments and changes to this ticket

  • mat

    mat July 14th, 2010 @ 11:24 AM

    • Milestone set to Bugs
    • Milestone order changed from “0” to “0”
  • mat

    mat July 14th, 2010 @ 12:37 PM

    • State changed from “new” to “invalid”

    This is intentional -- logging is an optional feature that needs to be explicitly required, because it's a monkey patch of RSolr and I don't think that sort of thing is good to include by default.

  • Paul Canavese

    Paul Canavese July 14th, 2010 @ 01:03 PM

    Fair enough. For some reason I thought I couldn't require it from the app without knowing the absolute path to the gem, but of course this works fine:

    require 'sunspot/rails/solr_logging'

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Awesome Solr interaction for Ruby

People watching this ticket

Pages