Skip to content

Commit 1e1a3b1

Browse files
committed
log action time spend
1 parent 326e845 commit 1e1a3b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/javavi/src/main/java/kg/ash/javavi/Javavi.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public static void main(String[] args) {
5555

5656
public static String makeResponse(String[] args) {
5757

58+
long ms = System.currentTimeMillis();
5859
Action action = null;
5960
boolean asyncRun = false;
6061
for (int i = 0; i < args.length; i++) {
@@ -108,6 +109,7 @@ public static String makeResponse(String[] args) {
108109
result = action.perform(args);
109110
}
110111
}
112+
logger.debug("action time: {}ms", (System.currentTimeMillis() - ms));
111113
return result;
112114
}
113115
}

0 commit comments

Comments
 (0)