Skip to content

Commit

Permalink
Merge pull request #5 from thomashigginbotham/hotfix
Browse files Browse the repository at this point in the history
Fix log4net configuration error
  • Loading branch information
jstemerdink committed Jun 18, 2018
2 parents da1dbc4 + 9e538e4 commit e7e5f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public Helper(IServiceLocator serviceLocator)
this.ContentRepository = serviceLocator.GetInstance<IContentRepository>();
this.ContentSoftLinkRepository = serviceLocator.GetInstance<IContentSoftLinkRepository>();
this.ContentTypeRepository = serviceLocator.GetInstance<IContentTypeRepository>();
this.Logger = serviceLocator.GetInstance<ILogger>();
this.Logger = LogManager.GetLogger();
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion SearchInitialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void Initialize(InitializationEngine context)
return;
}

this.Logger = context.Locate.Advanced.GetInstance<ILogger>();
this.Logger = LogManager.GetLogger();
this.ContentEvents = context.Locate.Advanced.GetInstance<IContentEvents>();

this.Helper = new Helper(serviceLocator: context.Locate.Advanced);
Expand Down

0 comments on commit e7e5f67

Please sign in to comment.