Skip to content

Commit

Permalink
Revert pull request #335
Browse files Browse the repository at this point in the history
  • Loading branch information
kichristensen committed May 7, 2014
1 parent ff27bd3 commit 8abcddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NLog/LoggerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private static int FindCallingMethodOnStackTrace(StackTrace stackTrace, Type log
methodAssembly = mb.DeclaringType.Assembly;
}

if (SkipAssembly(methodAssembly) || (loggerType != null && mb.DeclaringType == loggerType))
if ((loggerType == null && SkipAssembly(methodAssembly)) || mb.DeclaringType == loggerType)
{
firstUserFrame = i + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/NLog.UnitTests/NLogTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void AssertDebugLastMessageContains(string targetName, string msg)

// Console.WriteLine("lastmsg: {0}", debugTarget.LastMessage);

Assert.Null(debugTarget);
Assert.NotNull(debugTarget);
Assert.True(debugTarget.LastMessage.Contains(msg), "Unexpected last message value on '" + targetName + "'");
}

Expand Down

0 comments on commit 8abcddd

Please sign in to comment.