Make the auth module silent when there is no configuration for it

This commit is contained in:
Melanie
2010-01-14 02:42:15 +00:00
parent 482dcb7e89
commit 5dcb14726d

View File

@@ -67,7 +67,7 @@ namespace OpenSim.Services.Connectors
IConfig authorizationConfig = source.Configs["AuthorizationService"];
if (authorizationConfig == null)
{
m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService missing from OpenSim.ini");
//m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService missing from OpenSim.ini");
throw new Exception("Authorization connector init error");
}
@@ -86,6 +86,7 @@ namespace OpenSim.Services.Connectors
bool responseOnFailure = authorizationConfig.GetBoolean("ResponseOnFailure",true);
m_ResponseOnFailure = responseOnFailure;
m_log.Info("[AUTHORIZATION CONNECTOR]: AuthorizationService initialized");
}
public bool IsAuthorizedForRegion(string userID, string firstname, string surname, string email, string regionName, string regionID, out string message)