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


##########
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

Review Comment:
   oh indeed, it's filthy. Locally I was adding data into the pdict to print 
here, rather than pass extra arguments through many layers of functions that 
don't need it. 



-- 
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