Skip to content

Commit 3cb918e

Browse files
authored
fix: replace System.out.println debug statements with SLF4J log.debug… (#1678)
fix: replace System.out.println debug statements with SLF4J log.debug (#1675) Unconditional System.out.println() calls in ApiClient.mustache were causing debug log spam for every API call. Replaced with log.debug() using the existing SLF4J logger so output only appears when DEBUG level is enabled.
1 parent eab60b4 commit 3cb918e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

api/src/main/resources/custom_templates/ApiClient.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,18 +1436,18 @@ protected List<ServerConfiguration> servers = new ArrayList<ServerConfiguration>
14361436
if (!method.equals(HttpMethod.GET.name())) {
14371437
// Wrap cache operations in try-catch to prevent interference with API exceptions
14381438
try {
1439-
System.out.println("DEBUG: Invalidating cache for " + method + " " + cacheKey);
1440-
System.out.println("DEBUG: Path: " + path);
1441-
System.out.println("DEBUG: Current cache: " + cache.getClass().getName());
1439+
log.debug("Invalidating cache for {} {}", method, cacheKey);
1440+
log.debug("Path: {}", path);
1441+
log.debug("Current cache: {}", cache.getClass().getName());
14421442
14431443
// Remove from current cache (based on returnType)
14441444
cache.remove(cacheKey);
1445-
System.out.println("DEBUG: Removed from current cache");
1445+
log.debug("Removed from current cache");
14461446
14471447
// Also remove from default cache in case it was cached there
14481448
if (cache != defaultCache) {
14491449
defaultCache.remove(cacheKey);
1450-
System.out.println("DEBUG: Removed from default cache");
1450+
log.debug("Removed from default cache");
14511451
}
14521452

14531453
// For DELETE/PUT/POST, the returnType might be void/null, so cache = defaultCache

0 commit comments

Comments
 (0)