<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -15,4 +15,6 @@ It only uses the context when it's activated.  To activate, you can set a contro
     ActiveRecord::Base.with_context do
       yield
     end
-  end
\ No newline at end of file
+  end
+  
+Set Technoweenie::ActiveRecordContext.log_context_activity = true to turn on debug logging.
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,7 @@ module Technoweenie
       end
     end
     
+    mattr_accessor :log_context_activity
     mattr_reader :context_cache
 
     def find_every_with_context(options)
@@ -17,6 +18,7 @@ module Technoweenie
     
     def find_one_with_context(id, options)
       cached = options[:conditions].nil? &amp;&amp; find_in_context(id)
+      logger.debug &quot;[Context] Found #{name} ##{id}}&quot; if log_context_activity &amp;&amp; cached
       cached ? cached : find_one_without_context(id, options)
     end
 
@@ -26,6 +28,7 @@ module Technoweenie
     
     def store_in_context(records)
       return if context_cache.nil?
+      logger.debug &quot;[Context] Storing #{name} records: #{records.collect(&amp;:id).to_sentence}&quot; if log_context_activity
       records.inject(context_cache[self] ||= {}) do |memo, record| 
         memo.update record.id =&gt; record
       end</diff>
      <filename>lib/technoweenie/active_record_context.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>239e3da70a266de8079c54a29020bc8e1092026f</id>
    </parent>
  </parents>
  <author>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </author>
  <url>http://github.com/technoweenie/active_record_context/commit/dd59f8aa8ca5573285624e85641d938f7dfdc287</url>
  <id>dd59f8aa8ca5573285624e85641d938f7dfdc287</id>
  <committed-date>2006-11-26T00:21:19-08:00</committed-date>
  <authored-date>2006-11-26T00:21:19-08:00</authored-date>
  <message>add logging

git-svn-id: http://svn.techno-weenie.net/projects/plugins/active_record_context@2514 567b1171-46fb-0310-a4c9-b4bef9110e78</message>
  <tree>5d053ba72e4605eff70ac10bf1cd78fab05ad36e</tree>
  <committer>
    <name>technoweenie</name>
    <email>technoweenie@567b1171-46fb-0310-a4c9-b4bef9110e78</email>
  </committer>
</commit>
