Skip to content

fix: reduce log verbosity for /api/operations polling#8050

Merged
mudler merged 2 commits intomudler:masterfrom
Divyanshupandey007:fix/reduce-webui-logging
Jan 15, 2026
Merged

fix: reduce log verbosity for /api/operations polling#8050
mudler merged 2 commits intomudler:masterfrom
Divyanshupandey007:fix/reduce-webui-logging

Conversation

@Divyanshupandey007
Copy link
Copy Markdown
Contributor

Description

This PR reduces the log verbosity for the /api/operations endpoint. The Web UI polls this endpoint frequently (every second), causing the logs to be flooded with INFO messages which makes debugging difficult.

Changes

  • Modified the logging middleware in core/http/app.go.
  • Successful requests (200 OK) to /api/operations are now logged at DEBUG level (hidden by default) instead of INFO.
  • Failed requests or requests to other endpoints continue to log at INFO level.

Related Issue

Fixes #7989

Testing

  • Built and ran LocalAI locally.
  • Verified that curl http://localhost:8080/api/operations no longer produces an INFO log entry.
  • Verified that other endpoints (e.g., /favicon.svg or /readyz) still produce INFO logs as expected.

Reduces log clutter by changing the log level from INFO to DEBUG for successful (200 OK) /api/operations requests. This endpoint is polled frequently by the Web UI, causing log spam. Fixes mudler#7989.
Reduces log clutter by changing the log level from INFO to DEBUG for successful (200 OK) /api/operations requests. This endpoint is polled frequently by the Web UI, causing log spam. Fixes mudler#7989.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 15, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 89c1597
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69692f564cf9530008468959
😎 Deploy Preview https://deploy-preview-8050--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler merged commit 1a50717 into mudler:master Jan 15, 2026
9 of 10 checks passed
@Divyanshupandey007 Divyanshupandey007 deleted the fix/reduce-webui-logging branch January 16, 2026 17:12
localai-bot pushed a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
* fix: reduce log verbosity for /api/operations polling

Reduces log clutter by changing the log level from INFO to DEBUG for successful (200 OK) /api/operations requests. This endpoint is polled frequently by the Web UI, causing log spam. Fixes mudler#7989.

* fix: reduce log verbosity for /api/operations polling

Reduces log clutter by changing the log level from INFO to DEBUG for successful (200 OK) /api/operations requests. This endpoint is polled frequently by the Web UI, causing log spam. Fixes mudler#7989.
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.

Reduce log verbosity of Web UI

2 participants