Added somecode so that profile errors will be recordedd to the Error Log
Added a reference to Log4Net Fixed Profile Logic when PDF cannot be created because it is already open.
This commit is contained in:
@@ -54,6 +54,7 @@ namespace Volian.Base.Library
|
||||
}
|
||||
public static class ProfileTimer
|
||||
{
|
||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static Stack<string> _MyStack = new Stack<string>();
|
||||
|
||||
public static Stack<string> MyStack
|
||||
@@ -93,7 +94,7 @@ namespace Volian.Base.Library
|
||||
private static int DoPop(int depth)
|
||||
{
|
||||
if (MyStack.Count != depth)
|
||||
Console.WriteLine("Profile Stack Issues {0}", Start);
|
||||
_MyLog.WarnFormat("Profile Stack Issues\r\n {0}, Depth is {1}, Depth should be {2}", Start,MyStack.Count,depth);
|
||||
Start = MyStack.Pop();
|
||||
return MyStack.Count;
|
||||
}
|
||||
|
Reference in New Issue
Block a user