Skip to content

Commit 16ac162

Browse files
authored
Update Log4j.java
1 parent bac386d commit 16ac162

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/org/joychou/controller/Log4j.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,8 @@ public class Log4j {
1717
*/
1818
@RequestMapping(value = "/log4j")
1919
public String log4j(String token) {
20-
logger.info("token: {}", token);
21-
String password = "Pass@0rd";
22-
logger.info("User password is "+password);
2320
String privateKey = "parivate";
24-
logger.info("paramaters is {}", new Object[]{privateKey});
25-
if (StringUtils.isBlank(privateKey)) {
26-
logger.info("something wrong, token: {}, privateKey: {}", token, privateKey);
27-
}
21+
logger.error("something wrong, token: {}, privateKey: {}", token, privateKey);
2822
return token;
2923
}
3024

0 commit comments

Comments
 (0)