2 Commits cda1c7f1f2 ... 3f70e493b0

Autor SHA1 Mensaje Fecha
  UbitUmarov 3f70e493b0 fix LogOutgoingDetail output length limit hace 1 mes
  UbitUmarov 45372514c2 remove old bad code hace 1 mes

+ 0 - 11
OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs

@@ -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);
                     }
 

+ 1 - 1
OpenSim/Framework/WebUtil.cs

@@ -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] + "...";