mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 07:32:57 +00:00
welcome timestamp replace with readable date time
This commit is contained in:
1 parent
dbcde9fe42
commit
3a086fddf3
2 files changed
+3
-2
No files matched your search
@@ -21,6 +21,7 @@ import com.taobao.arthas.core.shell.system.impl.JobControllerImpl;
|
||||
import com.taobao.arthas.core.shell.system.impl.JobImpl;
|
||||
import com.taobao.arthas.core.shell.term.Term;
|
||||
import com.taobao.arthas.core.util.Constants;
|
||||
import com.taobao.arthas.core.util.DateUtils;
|
||||
import com.taobao.arthas.core.util.LogUtil;
|
||||
import com.taobao.middleware.logger.Logger;
|
||||
|
||||
@@ -119,7 +120,7 @@ public class ShellImpl implements Shell {
|
||||
if (welcome != null && welcome.length() > 0) {
|
||||
term.write(welcome + "\n");
|
||||
term.write("pid: " + session.get(Session.PID) + "\n");
|
||||
term.write("timestamp: " + System.currentTimeMillis() + "\n\n");
|
||||
term.write("time: " + DateUtils.getCurrentDate() + "\n\n");
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user