rnewson commented on code in PR #5673:
URL: https://github.com/apache/couchdb/pull/5673#discussion_r2369218624


##########
src/couch/src/couch_query_servers.erl:
##########
@@ -299,9 +299,23 @@ log_sum_overflow(InSize, OutSize) ->
         "input size: ~b "
         "output size: ~b",
     Msg = iolist_to_binary(io_lib:format(Fmt, [InSize, OutSize])),
-    couch_log:error(Msg, []),
+    couch_log:error(<<Msg/binary, " (~s)">>, [filename()]),
     Msg.
 
+filename() ->
+    case get(cfile_handle) of
+        {_Pid, File} ->
+            couch_file:filepath(File);
+        undefined ->
+            "unknown path"
+    end.
+
+overflow_threshold() ->
+    config:get_integer("query_server_config", "reduce_limit_threshold", 4906).

Review Comment:
   by this clown d2d2261c460bd91770100011e10351d48644038b



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to