Skip to content

25.0.1 introduces debug log spam for most/all API calls #1675

@mamarley

Description

@mamarley

Describe the bug?

Starting with 25.0.1, I'm getting 4 lines of log output for most or all of the API calls that I'm making. These lines look like:

DEBUG: Invalidating cache for POST [REDACTED]
DEBUG: Path: /api/v1/users
DEBUG: Current cache: com.okta.sdk.impl.cache.DisabledCache
DEBUG: Removed from current cache

What is expected to happen?

No debug log output should be produced by default unless it is specifically turned on.

What is the actual behavior?

The following output (or similar) is produced for most or all API calls:

DEBUG: Invalidating cache for POST [REDACTED]
DEBUG: Path: /api/v1/users
DEBUG: Current cache: com.okta.sdk.impl.cache.DisabledCache
DEBUG: Removed from current cache

Reproduction Steps?

Make any API call using the SDK.

Additional Information?

The bug was introduced in 547f0ff by adding unconditional System.out.println() statements to ApiClient.mustache.

Java Version

openjdk version "25.0.2" 2026-01-20
OpenJDK Runtime Environment (build 25.0.2+10-Ubuntu-1)
OpenJDK 64-Bit Server VM (build 25.0.2+10-Ubuntu-1, mixed mode, sharing)

SDK Version

25.0.1

OS version

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions