B2017-251 - Added Error Log message when a step or MSWord section is opened.
This commit is contained in:
parent
543a64a4f2
commit
0d8be26409
@ -48,6 +48,9 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public partial class DisplayTabControl : UserControl
|
||||
{
|
||||
#region Log4Net
|
||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
#endregion
|
||||
private static bool _SyncronizeEnahnced = false;
|
||||
public static bool SyncronizeEnhanced
|
||||
{
|
||||
@ -439,7 +442,11 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
public DisplayTabItem OpenItem(ItemInfo myItemInfo2)
|
||||
{
|
||||
return OpenItem(myItemInfo2, true);
|
||||
//B2017-251 Added Error Log message for Open Step or MSWord section include time to do open
|
||||
DateTime tStart = DateTime.Now;
|
||||
DisplayTabItem dti = OpenItem(myItemInfo2, true);
|
||||
_MyLog.InfoFormat("OpenItem {0} seconds {1} {2}", TimeSpan.FromTicks(DateTime.Now.Ticks - tStart.Ticks).TotalSeconds, myItemInfo2.ItemID, myItemInfo2.ShortPath);
|
||||
return dti;
|
||||
}
|
||||
/// <summary>
|
||||
/// Open a Step Item or a Word Item
|
||||
|
Loading…
x
Reference in New Issue
Block a user