@@ -83,7 +83,7 @@ private int getCompleteTrace(Inject inject) {
83
83
public boolean isAllInjectAgentsExecuted (Inject inject ) {
84
84
int totalCompleteTrace = getCompleteTrace (inject );
85
85
List <Agent > agents = this .injectService .getAgentsByInject (inject );
86
- log .info (
86
+ log .debug (
87
87
"[issue/2797] Inputs for inject ID: "
88
88
+ inject .getId ()
89
89
+ "::agents.size="
@@ -94,13 +94,13 @@ public boolean isAllInjectAgentsExecuted(Inject inject) {
94
94
}
95
95
96
96
public void updateFinalInjectStatus (InjectStatus injectStatus ) {
97
- log .info ("[issue/2797] updateFinalInjectStatus 1: " + injectStatus .getId ());
97
+ log .debug ("[issue/2797] updateFinalInjectStatus 1: " + injectStatus .getId ());
98
98
ExecutionStatus finalStatus =
99
99
computeStatus (
100
100
injectStatus .getTraces ().stream ()
101
101
.filter (t -> ExecutionTraceAction .COMPLETE .equals (t .getAction ()))
102
102
.toList ());
103
- log .info ("[issue/2797] updateFinalInjectStatus 2: " + injectStatus .getId ());
103
+ log .debug ("[issue/2797] updateFinalInjectStatus 2: " + injectStatus .getId ());
104
104
injectStatus .setTrackingEndDate (Instant .now ());
105
105
injectStatus .setName (finalStatus );
106
106
injectStatus .getInject ().setUpdatedAt (Instant .now ());
@@ -165,7 +165,7 @@ private void computeExecutionTraceStatusIfNeeded(
165
165
166
166
@ Scheduled (fixedDelay = 60000 ) // Run every 1 minutes
167
167
public void cleanupOldLocks () {
168
- log .info ("[issue/2797] Clean up of old locks started" );
168
+ log .debug ("[issue/2797] Clean up of old locks started" );
169
169
long currentTime = System .currentTimeMillis ();
170
170
int removedCount = 0 ;
171
171
@@ -180,9 +180,7 @@ public void cleanupOldLocks() {
180
180
}
181
181
}
182
182
183
- if (removedCount > 0 ) {
184
- log .info ("[issue/2797] Cleaned up {} old locks" , removedCount );
185
- }
183
+ log .debug ("[issue/2797] Cleaned up {} old locks" , removedCount );
186
184
}
187
185
188
186
// [issue/2797] region end: Added an alternative locking mechanism
@@ -201,11 +199,11 @@ public void updateInjectStatus(
201
199
// Update last access time
202
200
lastAccessTime .put (inject .getId (), System .currentTimeMillis ());
203
201
204
- log .info ("[issue/2797] Waiting for lock for inject ID: " + inject .getId ());
202
+ log .debug ("[issue/2797] Waiting for lock for inject ID: " + inject .getId ());
205
203
synchronized (lock ) {
206
204
boolean isAllInjectAgentsExecuted = isAllInjectAgentsExecuted (inject );
207
- log .info ("[issue/2797] Acquired lock for inject ID: " + inject .getId ());
208
- log .info (
205
+ log .debug ("[issue/2797] Acquired lock for inject ID: " + inject .getId ());
206
+ log .debug (
209
207
"[issue/2797] Inputs for inject ID: "
210
208
+ inject .getId ()
211
209
+ "::action="
@@ -218,7 +216,7 @@ public void updateInjectStatus(
218
216
}
219
217
220
218
injectRepository .save (inject );
221
- log .info ("Successfully updated inject: " + inject .getId ());
219
+ log .debug ("Successfully updated inject: " + inject .getId ());
222
220
}
223
221
}
224
222
0 commit comments