Skip to content

Add toString() to ConfigKey for readable log output#118

Open
kimjune01 wants to merge 1 commit into
LinShunKang:developfrom
kimjune01:fix-configkey-tostring
Open

Add toString() to ConfigKey for readable log output#118
kimjune01 wants to merge 1 commit into
LinShunKang:developfrom
kimjune01:fix-configkey-tostring

Conversation

@kimjune01

Copy link
Copy Markdown

Summary

  • Add toString() override to ConfigKey so log statements render the key and legacyKey fields instead of the default object hash
  • Produces output like ConfigKey{key='...', legacyKey='...'} for debugging and configuration troubleshooting

Test plan

  • Verify ConfigKey.of("k", "lk").toString() returns ConfigKey{key='k', legacyKey='lk'}
  • Confirm existing tests still pass

ConfigKey instances appear in log output, but the default Object.toString()
shows only memory addresses. This adds a toString() that displays both the
current key and legacy key, making configuration debugging easier.
@kimjune01 kimjune01 marked this pull request as draft May 17, 2026 20:08
@kimjune01 kimjune01 marked this pull request as ready for review May 22, 2026 06:51
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.

1 participant