Skip to content

Instantly share code, notes, and snippets.

@technoweenie
Created September 7, 2008 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technoweenie/9246 to your computer and use it in GitHub Desktop.
Save technoweenie/9246 to your computer and use it in GitHub Desktop.
diff --git a/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/delta.rb b/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/delta.rb
index 88da2bd..20c4570 100644
--- a/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/delta.rb
+++ b/vendor/plugins/thinking-sphinx/lib/thinking_sphinx/active_record/delta.rb
@@ -85,7 +85,9 @@ module ThinkingSphinx
{self.id => 1}
) if self.in_core_index?
- system "indexer --config #{config.config_file} --rotate #{self.class.indexes.first.name}_delta"
+ cmd = "indexer --config #{config.config_file} --rotate #{self.class.indexes.first.name}_delta"
+ logger.debug "-- running #{cmd.inspect} in #{Dir.pwd.inspect} --"
+ logger.debug %x(#{cmd})
true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment