]> git.notmuchmail.org Git - sup/blobdiff - lib/sup/hook.rb
Merge branch 'logging' into next
[sup] / lib / sup / hook.rb
index 33a97b26063bffceb9f3d600962918b46106aa34..4d3b58ab1d4f052ce4d91e57955506c228950f9a 100644 (file)
@@ -45,7 +45,7 @@ class HookManager
     end
 
     def log s
-      Redwood::log "hook[#@__name]: #{s}"
+      info "hook[#@__name]: #{s}"
     end
 
     def ask_yes_or_no q
@@ -84,8 +84,6 @@ class HookManager
     @tags = {}
 
     Dir.mkdir dir unless File.exists? dir
-
-    self.class.i_am_the_instance self
   end
 
   attr_reader :tags
@@ -153,7 +151,7 @@ private
   end
 
   def log m
-    Redwood::log("hook: " + m)
+    info("hook: " + m)
   end
 end