Skip to content
This repository
Browse code

No more logging values. To noisy.

  • Loading branch information...
commit 72089c462661aa0fa0be9921d9af67851a5152b3 1 parent 48f0cd2
John Nunemaker authored July 04, 2011
1  lib/toy/logger.rb
@@ -10,7 +10,6 @@ def logger
10 10
       def log_operation(operation, model, adapter, key, value=nil)
11 11
         if logger.debug?
12 12
           logger.debug("ToyStore #{operation.to_s.upcase} #{model} :#{adapter.name} #{key.inspect}")
13  
-          logger.debug("  #{value.inspect}") unless value.nil?
14 13
         end
15 14
       end
16 15
     end
2  spec/toy/logger_spec.rb
@@ -16,7 +16,6 @@
16 16
 
17 17
     it "logs operation" do
18 18
       User.logger.should_receive(:debug).with('ToyStore GET User :memory "foo"')
19  
-      User.logger.should_receive(:debug).with('  "bar"')
20 19
       User.log_operation(:get, User, adapter, 'foo', 'bar')
21 20
     end
22 21
   end
@@ -26,7 +25,6 @@
26 25
 
27 26
     it "logs operation" do
28 27
       User.logger.should_receive(:debug).with('ToyStore GET User :memory "foo"')
29  
-      User.logger.should_receive(:debug).with('  "bar"')
30 28
       User.log_operation(:get, User, adapter, 'foo', 'bar')
31 29
     end
32 30
   end

0 notes on commit 72089c4

Please sign in to comment.
Something went wrong with that request. Please try again.