Skip to content

sdk: fix lost exception detail in ApiResult logging - #45

Open
chayu163 wants to merge 1 commit into
ZSvirt:mainfrom
chayu163:fix/sdk-apiresult-log-placeholder
Open

chayu163 wants to merge 1 commit into
ZSvirt:mainfrom
chayu163:fix/sdk-apiresult-log-placeholder

Conversation

@chayu163

Copy link
Copy Markdown

What changed

Fixed ApiResult.getProperty to include the exception detail in its warning
log by adding the missing {0} placeholder.

Why the change is needed

Logger.log(Level, String, Object) only substitutes the parameter when the
message contains a {0} placeholder. Without it, e.getMessage() is silently
dropped and the log shows no detail about the NoSuchMethodException, making
failures hard to diagnose.

How the change was tested

This is a single-line log-format fix; it compiles cleanly and requires no
behavioral changes to test. Not verified against a running server.

Related issues

Fixes #44

Compatibility / upgrade impact

None — log message text only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ZSvirt] bug: sdk: ApiResult logs fail to include exception detail

1 participant