From c7714d63204d70ed49e5d633bb49e34fd0f5f7cc Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 16 Oct 2019 13:05:30 +0100 Subject: make OSSL parsing error warning more clear --- .../ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Shared') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index d1f4ae6..1f88950 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -357,6 +357,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api else { string[] ids; + bool error = false; if (!string.IsNullOrWhiteSpace(ownerPerm)) { ids = ownerPerm.Split(new char[] {','}); @@ -403,15 +404,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } else { - m_log.WarnFormat("[OSSLENABLE]: error parsing line {0}", ownerPerm); + error = true; } - break; } } } + if (error) + m_log.WarnFormat("[OSSLENABLE]: error parsing line Allow_{0} = {1}", function, ownerPerm); } - + error = false; if (!string.IsNullOrWhiteSpace(creatorPerm)) { ids = creatorPerm.Split(new char[] {','}); @@ -430,9 +432,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } 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 } -- cgit v1.1