Skip to content

Conversation

@serdarozerr
Copy link
Contributor

@serdarozerr serdarozerr commented Jan 21, 2026

Context

We introduced log-level support in storage-cli and, by default, route all log output to the stderr stream. On the cloud_controller_ng side, these logs need to be persisted to support troubleshooting or debugging.
In addition, storage-cli now exposes optional flags (e.g. -log-level, -log-file) that must be configurable and passed through from cloud_controller.

Solution

We implemented log-level–aware logging in cloud_controller_ng and ensured that all relevant output is written to cloud_controller_ng.log.
To support flexible configuration, we introduced a new config variable, storage_cli_optional_flags, which allows arbitrary extra flags to be forwarded directly to storage-cli.

The variable is defined as a single string containing the desired flags, for example:

-log-level info -log-file <some-path>/storage_cli.log

@serdarozerr serdarozerr changed the title Feature/log storagecli outputs extra flag parameter for storage-cli and logging stderr log stream Jan 21, 2026
@johha johha merged commit 55ee961 into cloudfoundry:main Jan 26, 2026
16 of 17 checks passed
@johha johha deleted the feature/log-storagecli-outputs branch January 26, 2026 09:18
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Jan 26, 2026
Changes in cloud_controller_ng:

- extra flag parameter for storage-cli and logging stderr log stream
    PR: cloudfoundry/cloud_controller_ng#4795
    Author: serdar özer <serdar.oezer@sap.com>
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