Logging changes, first changes to multi account support
[pithos-ms-client] / trunk / Pithos.ShellExtensions / Menus / FileContextMenu.cs
index a7f2396..8bc2067 100644 (file)
@@ -371,7 +371,7 @@ namespace Pithos.ShellExtensions.Menus
 
             if (!NativeMethods.InsertMenu(hMenu, idCmdFirst, MF.MF_SEPARATOR | MF.MF_BYPOSITION, 0, String.Empty))
             {
-                Trace.TraceError("Error adding separator 1\r\n{0}", Marshal.GetLastWin32Error());
+                Log.ErrorFormat("Error adding separator 1\r\n{0}", Marshal.GetLastWin32Error());
                 return Marshal.GetHRForLastWin32Error();
             }
 
@@ -402,7 +402,7 @@ namespace Pithos.ShellExtensions.Menus
             sep.fType = MFT.MFT_SEPARATOR;*/
             if (!NativeMethods.InsertMenu(hMenu, (uint)_items.Values.Count + idCmdFirst+1,MF.MF_SEPARATOR|MF.MF_BYPOSITION, 0, String.Empty))
             {
-                Trace.TraceError("Error adding separator 1\r\n{0}", Marshal.GetLastWin32Error());
+                Log.ErrorFormat("Error adding separator 1\r\n{0}", Marshal.GetLastWin32Error());
                 return Marshal.GetHRForLastWin32Error();
             }