gnodet commented on issue #14188:
URL: https://github.com/apache/maven/issues/14188#issuecomment-7312857644

   Thanks for the interest! The `addArgument` slice is free — nobody is working 
on it yet, so please go ahead.
   
   A fluent-only first PR is exactly the right split. The call-site migration 
(replacing `isDebugEnabled()` guards) can follow once the API is in place.
   
   One note on the `log(format, null)` ambiguity you spotted: the `log(String, 
Supplier<?>)` / `log(String, Supplier<?>, Supplier<?>)` overloads are 
convenience defaults on the interface. Since `null` is not a valid 
`Supplier<?>` argument in practice, I'm not too worried about the ambiguity in 
real code — but if you'd prefer to avoid it entirely, the 2-arg variant is the 
only one that matters and `null` there would be a caller bug. Worth a note in 
the Javadoc either way.
   
   For the implementation: `addArgument(Supplier<?>)` on 
`DefaultLogEventBuilder` should call `supplier.get()` immediately — the level 
check already happened at `atDebug()`, so there's no need to store the 
supplier. Arguments just get appended to the existing args list.
   
   Happy to review whenever you open a PR.


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