You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This mostly applies to UnsafeArg, but maybe we could also add to SafeArg for consistency. The more probable scenario with SafeArg is a field that is too large/expensive to log.
The text was updated successfully, but these errors were encountered:
gracew
changed the title
Provide alternate UnsafeArg factory that take Supplier<T>
Provide alternate UnsafeArg factory that takes Supplier<T>
Jun 5, 2017
+1 to also adding to SafeArg for lazy evaluation for perf concerns as I've seen a few internally. Would also allow cleansing for safe logging portion of object.
We may want to log an object with a sensitive field that should not be logged even under unsafe parameters (e.g. user credentials).
Rather than relying on the
toString()
implementation to remove the offending value, users should instead be able to write:This mostly applies to
UnsafeArg
, but maybe we could also add toSafeArg
for consistency. The more probable scenario with SafeArg is a field that is too large/expensive to log.The text was updated successfully, but these errors were encountered: