Merge branch 'opensim:master' into master

This commit is contained in:
Adil El Farissi
2024-10-23 01:31:28 +00:00
committed by GitHub
3 changed files with 2 additions and 13 deletions

View File

@@ -831,17 +831,6 @@ namespace OpenSim.Framework.Servers.HttpServer
if (WebUtil.DebugLevel >= 5)
{
string output = System.Text.Encoding.UTF8.GetString(buffer);
if (WebUtil.DebugLevel >= 6)
{
// Always truncate binary blobs. We don't have a ContentType, so detect them using the request name.
if (requestHandler is not null && requestHandler.Name.Equals("GetMesh"))
{
if (output.Length > WebUtil.MaxRequestDiagLength)
output = string.Concat(output.AsSpan(0, WebUtil.MaxRequestDiagLength), "...");
}
}
WebUtil.LogResponseDetail(RequestNumber, output);
}

View File

@@ -333,7 +333,7 @@ namespace OpenSim.Framework
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void LogOutgoingDetail(string context, string output)
{
if (DebugLevel == 5)
if (DebugLevel >= 5)
{
if (output.Length > MaxRequestDiagLength)
output = output[..MaxRequestDiagLength] + "...";

View File

@@ -104,7 +104,7 @@ namespace OpenSim.Services.Base
"[SERVICE BASE]: Failed to load plugin {0} from {1} with args {2}",
interfaceName, dllName, string.Join(", ", strArgs.ToArray()), e);
if (e.InnerException != null)
m_log.Error($"\"[SERVICE BASE]: inner expection {e.InnerException.Message}");
m_log.Error($"[SERVICE BASE]: inner exception {e.InnerException.Message}");
return null;
}