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


##########
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:
   This feels slightly dirty as it relies on couch_file internals. Wonder we 
could add a more generic pdict term at least for index processes for the  
current view file path.



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