@@ -23,6 +23,7 @@ class StatisticClient {
23
23
24
24
static void call () {
25
25
log. info(' StatisticClient' )
26
+ log. debug(' Debug logging enabled' )
26
27
27
28
String dateFormat = ' yyyy-MM-dd HH:mm'
28
29
@@ -39,7 +40,6 @@ class StatisticClient {
39
40
LocalDateTime startDate = LocalDateTime . parse(startDateString, formatter)
40
41
41
42
log. info " Time range to look at: ${ startDate} - ${ endDate} "
42
-
43
43
def dojoConf = createDojoConf()
44
44
45
45
// set DEFECT_DOJO_OBJET_LIMIT to 3000 to save tons of unnecessary requests.
@@ -48,9 +48,11 @@ class StatisticClient {
48
48
def productService = new ProductService (dojoConf)
49
49
// noinspection GroovyAccessibility -- see comment above
50
50
productService. DEFECT_DOJO_OBJET_LIMIT = 3000
51
+ log. debug(" limit is set to productService.DEFECT_DOJO_OBJET_LIMIT ${ productService.DEFECT_DOJO_OBJET_LIMIT} " )
51
52
def findingService = new FindingService (dojoConf)
52
53
// noinspection GroovyAccessibility -- see comment above
53
54
findingService. DEFECT_DOJO_OBJET_LIMIT = 3000
55
+ log. debug(" limit is set to findingService.DEFECT_DOJO_OBJET_LIMIT ${ findingService.DEFECT_DOJO_OBJET_LIMIT} " )
54
56
55
57
generateResponseStatistic(productService, findingService, startDate, endDate)
56
58
}
@@ -92,13 +94,14 @@ class StatisticClient {
92
94
.filter(product -> shouldIncludeProduct(product))
93
95
.collect(Collectors . toList())
94
96
95
- log. debug " ${ products.size()} products found, iterating"
97
+ log. info " ${ products.size()} products found, iterating"
96
98
97
99
for (product in products) {
98
100
def findings = findingService. search([
99
101
test__engagement__product : product. id. toString(),
100
102
duplicate : " false"
101
103
])
104
+ log. info " Processing product ${ product.id.toString()} "
102
105
for (finding in findings) {
103
106
if (finding. getCreatedAt() > endDate) {
104
107
// skip all findings that were created after the end date. note that we can't filter for that at
0 commit comments