2 次代码提交 cda1c7f1f2 ... 3f70e493b0

作者 SHA1 备注 提交日期
  UbitUmarov 3f70e493b0 fix LogOutgoingDetail output length limit 1 月之前
  UbitUmarov 45372514c2 remove old bad code 1 月之前
共有 2 个文件被更改,包括 1 次插入12 次删除
  1. 0 11
      OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
  2. 1 1
      OpenSim/Framework/WebUtil.cs

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