You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2013/07/24 03:08:03 UTC
svn commit: r1506384 - in
/manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758:
CHANGES.txt webservice/MCPermissions.cs
Author: kwright
Date: Wed Jul 24 01:08:03 2013
New Revision: 1506384
URL: http://svn.apache.org/r1506384
Log:
Change logging behavior to adhere to SharePoint 2010 standards.
Modified:
manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/CHANGES.txt
manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/webservice/MCPermissions.cs
Modified: manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/CHANGES.txt?rev=1506384&r1=1506383&r2=1506384&view=diff
==============================================================================
--- manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/CHANGES.txt (original)
+++ manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/CHANGES.txt Wed Jul 24 01:08:03 2013
@@ -3,6 +3,9 @@ $Id$
======================= 0.3-dev =====================
+CONNECTORS-758: Change log output to go to trace log.
+(Christian M. Rieck, Will Parkinson, Karl Wright)
+
======================= Release 0.2 =====================
CONNECTORS-534: Repackage plugins to have a true binary release,
Modified: manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/webservice/MCPermissions.cs
URL: http://svn.apache.org/viewvc/manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/webservice/MCPermissions.cs?rev=1506384&r1=1506383&r2=1506384&view=diff
==============================================================================
--- manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/webservice/MCPermissions.cs (original)
+++ manifoldcf/integration/sharepoint-2010/branches/CONNECTORS-758/webservice/MCPermissions.cs Wed Jul 24 01:08:03 2013
@@ -26,6 +26,7 @@ using System.Security.Permissions;
using System.Xml;
using System.Diagnostics;
using Microsoft.SharePoint;
+using Microsoft.SharePoint.Administration;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Net.Security;
@@ -78,7 +79,7 @@ namespace MetaCarta.SharePoint.SoapServe
}
catch (Exception ex)
{
- EventLog.WriteEntry("MCPermissions.asmx", "Error: "+ex.Message+"; SPContext.Current.Web.Url='"+SPContext.Current.Web.Url+"'");
+ SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("MCPermissions.asmx", TraceSeverity.Medium, EventSeverity.Error), TraceSeverity.Medium, "Error: "+ex.Message+"; SPContext.Current.Web.Url='"+SPContext.Current.Web.Url+"'");
throw RaiseException(ex.Message, "1000", ex.Source);
}
@@ -155,7 +156,7 @@ namespace MetaCarta.SharePoint.SoapServe
}
catch (Exception ex)
{
- EventLog.WriteEntry("MCPermissions.asmx", ex.Message);
+ SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("MCPermissions.asmx", TraceSeverity.Medium, EventSeverity.Error), TraceSeverity.Medium, "Error: "+ex.Message);
throw RaiseException(ex.Message, "1010", ex.Source);
}