Permalink
Browse files

Revert "Use the already defined Logger instance."

This reverts commit f4c39b8.
  • Loading branch information...
1 parent 1aaa1bf commit 61adfee993d16c3c63520261de23848a9c99abc9 @garygreyling garygreyling committed Oct 5, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/campaign_monitor_subscriber/subscription_hooks.rb
@@ -6,8 +6,11 @@ module SubscriptionHooks
extend ActiveSupport::Concern
included do
+ require 'logger'
+ @@log = Logger.new('log/cm_subscriber.log')
+
after_create do |record|
- logger.debug "\n* Adding '#{record.cms_email}' to CM"
+ @@log.debug "\n* Adding '#{record.cms_email}' to CM"
begin
CreateSend::Subscriber.add(
@@ -24,7 +27,7 @@ module SubscriptionHooks
after_destroy do |record|
- logger.debug "\n* Removing '#{record.cms_email}' from CM"
+ @@log.debug "\n* Removing '#{record.cms_email}' from CM"
begin
s = CreateSend::Subscriber.new(

0 comments on commit 61adfee

Please sign in to comment.