Skip to content

Commit

Permalink
hide some value output in conformist prettyprint function (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
mabiede authored Oct 30, 2023
1 parent b319f76 commit 7f02447
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pool/app/pool_common/pool_common_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ module PoolConformist = struct
let input =
input
|> CCList.map (fun (k, v) ->
CCFormat.sprintf "(%s: %s)" k (CCString.concat ", " v))
if CCInt.equal CCString.(find ~sub:"password" (lowercase_ascii k)) (-1)
then CCFormat.sprintf "(%s: [opaque])" k
else CCFormat.sprintf "(%s: %s)" k (CCString.concat ", " v))
|> CCString.concat ", "
|> CCFormat.sprintf "(%s)"
in
Expand Down

0 comments on commit 7f02447

Please sign in to comment.