Skip to content

fix: do not log successful model deploy response as error#2377

Merged
rsynek merged 1 commit into
TimefoldAI:mainfrom
larsbeck:fix/deploy-model-mojo-false-error-log
Jun 16, 2026
Merged

fix: do not log successful model deploy response as error#2377
rsynek merged 1 commit into
TimefoldAI:mainfrom
larsbeck:fix/deploy-model-mojo-false-error-log

Conversation

@larsbeck

Copy link
Copy Markdown
Contributor

Problem

When deploying or updating a model via the Maven plugin, DeployModelMojo called printErrorInfo(response) on the success branches. This logged the platform's success response body at [ERROR] level even though the deployment succeeded — confusing users into thinking something failed when it did not.

Reported in Slack: a successful timefold:deploy printed the full model JSON response prefixed with [ERROR] right after BUILD SUCCESS.

Fix

Removed the printErrorInfo(response) calls from the deploy and update success branches. printErrorInfo is now only invoked on the genuine failure branch (non-2xx/3xx, non-409 responses).

🤖 Generated with Claude Code

DeployModelMojo called printErrorInfo() on the success branches of
deploy and update, logging the platform's success response body at
ERROR level even though deployment succeeded. Limit printErrorInfo()
to the genuine failure branch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 16, 2026 12:20
@larsbeck larsbeck requested review from rsynek and triceo as code owners June 16, 2026 12:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Cleans up Maven plugin output by avoiding printing error details when a model deployment/update succeeds.

Changes:

  • Removed printErrorInfo(response) calls from successful deploy and overwrite flows.

@sonarqubecloud

Copy link
Copy Markdown

@rsynek rsynek merged commit 33de170 into TimefoldAI:main Jun 16, 2026
19 checks passed
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