Skip to content

Remove recurring exception from the Management Server logs - #14441

Open
bernardodemarco wants to merge 1 commit into
apache:mainfrom
scclouds:remove-recurring-exception-from-logs
Open

bernardodemarco wants to merge 1 commit into
apache:mainfrom
scclouds:remove-recurring-exception-from-logs

Conversation

@bernardodemarco

Copy link
Copy Markdown
Member

Description

Whenever the Management Server attempts to retrieve the accessing API key from an HTTP request authenticated via a session, an exception is logged at the WARN level. However, since this scenario is extremely common, the exception is logged repeatedly, which can be undesired during troubleshooting.

This PR changes the log level to TRACE and modifies the log output to only include the exception message, which contains all the information required for troubleshooting.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@bernardodemarco bernardodemarco added this to the 24.0 milestone Oct 19, 2026
@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 20.40%. Comparing base (d3f0700) to head (31a9453).
⚠️ Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
...c/main/java/com/cloud/user/AccountManagerImpl.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main   #14441   +/-   ##
=========================================
  Coverage     20.39%   20.40%           
  Complexity    21283    21283           
=========================================
  Files          6481     6481           
  Lines        588040   588040           
  Branches      72021    72021           
=========================================
+ Hits         119957   119977   +20     
+ Misses       455052   455034   -18     
+ Partials      13031    13029    -2     
Flag Coverage Δ
uitests 3.70% <ø> (ø)
unittests 21.70% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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