logger fixes for the ui

This commit is contained in:
LukePulverenti
2013-02-21 15:36:36 -05:00
parent 211dd6b257
commit 2a2ee4adb3
5 changed files with 33 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
using MediaBrowser.Common.Logging;
using System;
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Forms;
@@ -62,7 +61,6 @@ namespace MediaBrowser.UI.UserInput
}
catch (Exception ex)
{
Logger.LogException("KeyDown event listener had an error: ", ex);
}
}
}
@@ -95,7 +93,6 @@ namespace MediaBrowser.UI.UserInput
/// </summary>
private static void StartListening()
{
Logger.LogInfo("Attaching low-level keyboard hook");
_hookID = SetHook(_proc);
}
@@ -104,8 +101,6 @@ namespace MediaBrowser.UI.UserInput
/// </summary>
private static void StopListening()
{
Logger.LogInfo("Detaching low-level keyboard hook");
UnhookWindowsHookEx(_hookID);
_hookID = IntPtr.Zero;
}