File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
common/src/main/resources
services/common-ws/src/main/java/ru/javaops/masterjava/web Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 11hosts {
2- mail = "http://localhost:8080"
2+ mail {
3+ endpoint = "http://localhost:8080"
4+ debug.client = DEBUG
5+ debug.server = INFO
6+ user = "user"
7+ password = "password"
8+ }
39}
410include file("/apps/masterjava/config/hosts.conf")
Original file line number Diff line number Diff line change 1+ package ru .javaops .masterjava .web ;
2+
3+ import lombok .extern .slf4j .Slf4j ;
4+
5+ @ Slf4j
6+ public class Statistics {
7+ public enum RESULT {
8+ SUCCESS , FAIL
9+ }
10+
11+ public static void count (String payload , long startTime , RESULT result ) {
12+ long now = System .currentTimeMillis ();
13+ int ms = (int ) (now - startTime );
14+ log .info (payload + " " + result .name () + " execution time(ms): " + ms );
15+ // place for statistics staff
16+
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments