Skip to content

Commit

Permalink
feat:3311
Browse files Browse the repository at this point in the history
  • Loading branch information
leizhiyuan committed Apr 22, 2020
1 parent af3a41d commit 44a4c60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.alipay.sofa</groupId>
<artifactId>hessian</artifactId>
<version>3.3.10</version>
<version>3.3.11</version>
<packaging>jar</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/com/alipay/hessian/NameBlackListFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,19 @@ public class NameBlackListFilter implements ClassNameFilter {
private static Logger judgeLogger() {

try {
NameBlackListFilter.class.getClassLoader().loadClass("com.alipay.sofa.common.log.LoggerSpaceManager");
Class.forName("com.alipay.sofa.common.log.LoggerSpaceManager", true,
NameBlackListFilter.class.getClassLoader());
} catch (Throwable e) {
//do nothing
return null;
}
//user can use a specify class to do some extra info in static
try {
Class.forName("com.alipay.sofa.middleware.log.ConfigLogFactory", true,
NameBlackListFilter.class.getClassLoader());
} catch (Throwable e) {
//do nothing
}

return com.alipay.sofa.common.log.LoggerSpaceManager.getLoggerBySpace(HESSIAN_SERIALIZE_LOG_NAME,
CONFIG_LOG_SPACE_NAME);
Expand Down

0 comments on commit 44a4c60

Please sign in to comment.