Problem solved, so removing debug logging

This commit is contained in:
Rick Falkvinge
2016-03-16 21:22:24 +01:00
parent 741e87d080
commit 1aefed753c
2 changed files with 0 additions and 11 deletions
-7
View File
@@ -29,15 +29,11 @@ namespace Swarmops.Logic.Security
/// </exception>
public static Person Authenticate (string loginToken, string password)
{
SwarmopsLog.DebugLog(string.Format("Authenticating '{0}'", loginToken, password));
// Get the list of people that match the login token.
People candidatePeople = GetPeopleByLoginToken (loginToken);
Person authenticatedUser = null;
SwarmopsLog.DebugLog ("- candidate count: " + candidatePeople.Count);
// For every person in the list, test the supplied password against the current and legacy hash schemes.
foreach (Person candidate in candidatePeople)
@@ -52,8 +48,6 @@ namespace Swarmops.Logic.Security
{
if (membership.Active)
{
SwarmopsLog.DebugLog ("- candidate #" + candidate.Identity + " has a valid participation");
hasActiveMemberships = true;
break;
}
@@ -63,7 +57,6 @@ namespace Swarmops.Logic.Security
if (!hasActiveMemberships)
{
SwarmopsLog.DebugLog("- candidate #" + candidate.Identity + " has NO valid participations");
continue;
}
-4
View File
@@ -793,11 +793,7 @@ namespace Swarmops.Logic.Swarm
public Participation AddParticipation (Organization organization, DateTime expires)
{
SwarmopsLog.DebugLog (string.Format("- adding participation in {0} until {1:yyyy-MM-dd HH:mm:ss}", organization.Name, expires));
Participation participation = AddParticipation (organization.Identity, expires);
SwarmopsLog.DebugLog ("- created participation #" + (participation != null? participation.Identity.ToString() : "null"));
return participation;
}