Skip to content

Conversation

@mike-sul
Copy link
Collaborator

The "LoadWithContext" API call of the "compose-go" project may produce warning logs while loading a compose project. This causes issue when a CLI command outputs result in json format. Hence, this change suppressing all non-error logs yielded by "LoadWithContext" by setting the "error" level for the logrus jsut before making the load call.

@mike-sul mike-sul requested a review from detsch January 23, 2026 11:24
Copy link
Member

@detsch detsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in commit message: "jsut"

LGTM.

The "LoadWithContext" API call of the "compose-go" project may produce
warning logs while loading a compose project. This causes issue when a
CLI command outputs result in json format. Hence, this change
suppressing all non-error logs yielded by "LoadWithContext" by setting
the "error" level for the "logrus" just before making the load call.

Signed-off-by: Mike Sul <[email protected]>
@mike-sul mike-sul force-pushed the suppress-compose-go-logs branch from bb59aa2 to affc452 Compare January 23, 2026 13:19
@mike-sul mike-sul merged commit 8fadf8c into main Jan 23, 2026
2 checks passed
@mike-sul mike-sul deleted the suppress-compose-go-logs branch January 23, 2026 13:30
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.

3 participants