Browse files

Merge pull request #6 from glenngillen/master

Adjust logging behaviour
  • Loading branch information...
2 parents c1cfafb + f4c39b8 commit 276513ba8f8bffc96bace1450d3c7d0c649708e7 @garygreyling garygreyling committed Oct 3, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/campaign_monitor_subscriber/subscription_hooks.rb
View
7 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 276513b

Please sign in to comment.