Permalink
Browse files

Merge branch 'master' of github.com:mpowered/campaign_monitor_subscriber

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

0 comments on commit d59732e

Please sign in to comment.