Skip to content

Conversation

@ruslanti
Copy link
Collaborator

@ruslanti ruslanti commented Jan 5, 2026

No description provided.

@ruslanti ruslanti requested review from Copilot and qrdl January 5, 2026 12:21
@ruslanti ruslanti self-assigned this Jan 5, 2026
@ruslanti ruslanti added the enhancement New feature or request label Jan 5, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reduces the logging verbosity by downgrading two informational log statements from info to debug level. This prevents excessive logging during normal operations while keeping error and exceptional conditions at the info level.

  • Changed "Processing request" log statement to debug level to reduce per-request noise
  • Changed "Added to cache" log statement to debug level as it's an internal implementation detail

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/http-service/src/lib.rs Downgraded "Processing request" log from info to debug to reduce verbosity on every successful request
crates/http-service/src/executor/http.rs Downgraded "Added to cache" log from info to debug as it represents internal caching behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

let component = self.loader().load_component(cfg.binary_id)?;
let instance_pre = engine.component_instantiate_pre(&component)?;
tracing::info!("Added '{}' to cache", name);
tracing::debug!("Added '{}' to cache", name);
Copy link
Collaborator

Choose a reason for hiding this comment

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

BTW does our cache works ok? Maybe it is too small? I remember seeing too many Added to cache messages in log when I expect the binary to be cached because it was called recently. I propose to leave this message as info to monitor cache

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

reverted

// lookup for application config and binary_id
tracing::info!(
tracing::debug!(
"Processing request for application '{}' on URL: {}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have any other log message for new request?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, we have one for completed with success or failure

@ruslanti ruslanti requested a review from qrdl January 6, 2026 10:33
@ruslanti ruslanti merged commit 495a6c0 into main Jan 6, 2026
3 checks passed
@ruslanti ruslanti deleted the fix/reduce_info_logging branch January 6, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants