make OSSL parsing error warning more clear
parent
0e3f24a67e
commit
c7714d6320
|
@ -357,6 +357,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
string[] ids;
|
string[] ids;
|
||||||
|
bool error = false;
|
||||||
if (!string.IsNullOrWhiteSpace(ownerPerm))
|
if (!string.IsNullOrWhiteSpace(ownerPerm))
|
||||||
{
|
{
|
||||||
ids = ownerPerm.Split(new char[] {','});
|
ids = ownerPerm.Split(new char[] {','});
|
||||||
|
@ -403,15 +404,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.WarnFormat("[OSSLENABLE]: error parsing line {0}", ownerPerm);
|
error = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (error)
|
||||||
|
m_log.WarnFormat("[OSSLENABLE]: error parsing line Allow_{0} = {1}", function, ownerPerm);
|
||||||
}
|
}
|
||||||
|
error = false;
|
||||||
if (!string.IsNullOrWhiteSpace(creatorPerm))
|
if (!string.IsNullOrWhiteSpace(creatorPerm))
|
||||||
{
|
{
|
||||||
ids = creatorPerm.Split(new char[] {','});
|
ids = creatorPerm.Split(new char[] {','});
|
||||||
|
@ -430,9 +432,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.WarnFormat("[OSSLENABLE]: error parsing line {0}", creatorPerm);
|
error = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (error)
|
||||||
|
m_log.WarnFormat("[OSSLENABLE]: error parsing line Creators_{0} = {1}", function, creatorPerm);
|
||||||
}
|
}
|
||||||
// both empty fallback as disabled
|
// both empty fallback as disabled
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue