File tree 1 file changed +2
-1
lines changed
apps/threat-detection/src/main/java/com/akto/threat/detection/tasks
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,10 @@ private void processRecord(HttpResponseParam record) throws Exception {
186
186
return ;
187
187
}
188
188
189
- logger .debugAndAddToDb ("Processing record with actor IP: " + responseParam .getSourceIP ());
190
189
Context .accountId .set (Integer .parseInt (responseParam .getAccountId ()));
191
190
Map <String , FilterConfig > filters = this .getFilters ();
192
191
if (filters .isEmpty ()) {
192
+ logger .warnAndAddToDb ("No filters found for account " + responseParam .getAccountId ());
193
193
return ;
194
194
}
195
195
@@ -207,6 +207,7 @@ private void processRecord(HttpResponseParam record) throws Exception {
207
207
ApiInfo .ApiInfoKey apiInfoKey = new ApiInfo .ApiInfoKey (apiCollectionId , url , method );
208
208
209
209
for (FilterConfig apiFilter : apiFilters .values ()) {
210
+ logger .debugAndAddToDb ("Evaluating filter condition for url " + apiInfoKey .getUrl () + " filterId " + apiFilter .getId ());
210
211
boolean hasPassedFilter = validateFilterForRequest (apiFilter , rawApi , apiInfoKey );
211
212
212
213
// If a request passes any of the filter, then it's a malicious request,
You can’t perform that action at this time.
0 commit comments