Skip to content

Commit

Permalink
redefine command log redefine info. alibaba#530
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed May 5, 2019
1 parent 3481f92 commit c3805d8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import java.util.List;
import java.util.Map;

import com.taobao.arthas.core.util.LogUtil;
import com.taobao.middleware.logger.Logger;
import org.objectweb.asm.ClassReader;

import com.taobao.arthas.core.command.Constants;
Expand All @@ -36,7 +38,7 @@
" redefine -c 327a647b /tmp/Test.class /tmp/Test\\$Inner.class \n" +
Constants.WIKI + Constants.WIKI_HOME + "redefine")
public class RedefineCommand extends AnnotatedCommand {

private static final Logger logger = LogUtil.getArthasLogger();
private static final int MAX_FILE_SIZE = 10 * 1024 * 1024;

private String hashCode;
Expand Down Expand Up @@ -116,6 +118,7 @@ public void process(CommandProcess process) {
continue;
}
definitions.add(new ClassDefinition(clazz, bytesMap.get(clazz.getName())));
logger.info("redefine", "Try redefine class name: {}, ClassLoader: {}", clazz.getName(), clazz.getClassLoader());
}
}

Expand Down

0 comments on commit c3805d8

Please sign in to comment.