Skip to content

Commit

Permalink
[hotfix-1856] [chunjun-core] Fix the problem that oss's secret should…
Browse files Browse the repository at this point in the history
… be hidden
  • Loading branch information
AliceXiaoLu committed Dec 14, 2023
1 parent 41b96a8 commit f95feb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public static String toPrintJson(Object obj) {
Map<String, Object> result =
objectMapper.readValue(objectMapper.writeValueAsString(obj), HashMap.class);
MapUtil.replaceAllElement(
result, Lists.newArrayList("pwd", "password", "druid.password"), "******");
result, Lists.newArrayList("pwd", "password", "druid.password", "secretKey"), "******");
return objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(result);
} catch (Exception e) {
throw new RuntimeException("error parse [" + obj + "] to json", e);
Expand Down

0 comments on commit f95feb6

Please sign in to comment.