Skip to content

Commit

Permalink
Removed logging - see #1
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Feb 28, 2019
1 parent 800b7db commit fa91eca
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Skybrud.Umbraco.MailChimp/Models/MailChimpSignup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using ServiceStack.Text;
using Skybrud.Umbraco.MailChimp.Extensions;
using Skybrud.Umbraco.MailChimp.Integrations;
using Umbraco.Core.Logging;

namespace Skybrud.Umbraco.MailChimp.Models
{
Expand Down Expand Up @@ -46,8 +45,6 @@ public class MailChimpSignup
public void AddConfig(MailChimpOptions config)
{
Config = config;

LogHelper.Info<MailChimpSignup>("Object Initiatet: " + this.SerializeToString());
}

/// <summary>
Expand Down Expand Up @@ -75,21 +72,14 @@ public EmailParameter SaveUpdateSubscriber(MailChimpSignup signUpModel)
Email = signUpModel.Email
};

LogHelper.Info<MailChimpSignup>(signUpModel.Config.DoubleOptIn.ToString);

// subscribe @MailChimp
EmailParameter r = mcManager.Subscribe(signUpModel.ListId, EmailP, signUpModel.Config.CustomMergeVar,
signUpModel.Config.EmailType, signUpModel.Config.DoubleOptIn, signUpModel.ExistingUser);


LogHelper.Info<MailChimpSignup>("Subscriber saved/updated: " + r.SerializeToString());

return r;
}
catch (Exception ex)
{
LogHelper.Error<MailChimpSignup>("SaveUpdateSubscriberError", ex);

return new EmailParameter();
}

Expand Down

0 comments on commit fa91eca

Please sign in to comment.