<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,39 +72,42 @@ module OpenWFE
 
     private
 
-      def do_log (level, message, &amp;block)
+    def do_log (level, message, &amp;block)
 
-        return unless $OWFE_LOG
+      return unless $OWFE_LOG
 
-        logblock = lambda do
-          if block
-            &quot;#{log_prepare(message)} - #{block.call}&quot;
-          else
-            &quot;#{log_prepare(message)}&quot;
-          end
+      logblock = lambda do
+        if block
+          &quot;#{log_prepare(message)} - #{block.call}&quot;
+        else
+          &quot;#{log_prepare(message)}&quot;
         end
+      end
 
-        # If somebody (ActiveSupport) changed the formatter, let's
-        # undo it.
-        $OWFE_LOG.formatter = Logger::Formatter.new unless $OWFE_LOG.formatter.class == Logger::Formatter 
+      # If somebody (ActiveSupport) changed the formatter, let's
+      # undo it.
 
-        $OWFE_LOG.send level, &amp;logblock
+      if $OWFE_LOG.respond_to?(:formatter) &amp;&amp; $OWFE_LOG.formatter.class == Logger::Formatter
+        $OWFE_LOG.formatter = Logger::Formatter.new
       end
 
-      def log_prepare (message)
+      $OWFE_LOG.send(level, &amp;logblock)
+    end
 
-        return log_author() unless message
-        &quot;#{log_author} - #{message}&quot;
-      end
+    def log_prepare (message)
 
-      def log_author
+      return log_author() unless message
+      &quot;#{log_author} - #{message}&quot;
+    end
 
-        if respond_to?(:service_name)
-          &quot;#{self.class} '#{self.service_name}'&quot;
-        else
-          &quot;#{self.class}&quot;
-        end
+    def log_author
+
+      if respond_to?(:service_name)
+        &quot;#{self.class} '#{self.service_name}'&quot;
+      else
+        &quot;#{self.class}&quot;
       end
+    end
 
   end
 </diff>
      <filename>lib/openwfe/logging.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a8bd18251de1392cc897f2cd5b27598f540b1a0</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/ruote/commit/82cfc10fa6393c8c5c026552d6929ab0cbaa87d3</url>
  <id>82cfc10fa6393c8c5c026552d6929ab0cbaa87d3</id>
  <committed-date>2009-06-01T05:51:47-07:00</committed-date>
  <authored-date>2009-06-01T05:51:47-07:00</authored-date>
  <message>adapting logging to rails 2.3.2</message>
  <tree>c4dcb8714242b3e2cfb956ee83883d72dcb014df</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
