Skip to content

CXXCBC-523: Clean up dump_configuration config output#577

Merged
thejcfactor merged 2 commits intocouchbase:mainfrom
thejcfactor:CXXCBC-523
Jun 10, 2024
Merged

CXXCBC-523: Clean up dump_configuration config output#577
thejcfactor merged 2 commits intocouchbase:mainfrom
thejcfactor:CXXCBC-523

Conversation

@thejcfactor
Copy link
Copy Markdown
Contributor

Motivation

Being able to dump the cluster configuration is a useful debugging tool. An unfortunate side effect is the config is not properly trimmed when prepped to output in the log. Removing the unwanted bytes in the log helps improve dev experience.

Changes

  • Update cmd_cluster_map_change_notification and cmd_get_cluster_config to save parsed config body as std::string_view.
  • Update mcbp session to use new config_text from corresponding request/response.

Motivation
==========
Being able to dump the cluster configuration is a useful debugging tool.
An unfortunate side effect is the config is not properly trimmed when
prepped to output in the log.  Removing the unwanted bytes in the log
helps improve dev experience.

Changes
=======
* Update cmd_cluster_map_change_notification and cmd_get_cluster_config
  to save parsed config body as std::string_view.
* Update mcbp session to use new config_text from corresponding
  request/response.
@thejcfactor thejcfactor merged commit 81442c4 into couchbase:main Jun 10, 2024
@thejcfactor thejcfactor deleted the CXXCBC-523 branch June 10, 2024 18:12
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.

2 participants