Skip to content

Adds a way to disable logging for some tasks.#407

Merged
gbin merged 6 commits into
masterfrom
gbin/inhibit-log-for-task
Jul 29, 2025
Merged

Adds a way to disable logging for some tasks.#407
gbin merged 6 commits into
masterfrom
gbin/inhibit-log-for-task

Conversation

@gbin

@gbin gbin commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator
  1. Added a logging { enabled = false } entry to the ron file
  2. Generates the payload clears of the matching tasks on the runtime generation

@gbin gbin requested a review from Copilot July 29, 2025 18:19
@gbin gbin marked this pull request as ready for review July 29, 2025 18:19

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

This PR adds functionality to disable logging for specific tasks by introducing a logging configuration option. The implementation allows tasks to be marked with logging: { enabled: false } in the configuration file, which prevents their output payloads from being logged during runtime.

  • Adds optional logging configuration to task nodes in the config system
  • Modifies the runtime code generation to clear payloads for tasks with logging disabled
  • Includes a complete example demonstrating the no-logging functionality

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 5 comments.

File Description
examples/cu_nologging_tasks/* Complete example project demonstrating disabled logging functionality
core/cu29_runtime/src/config.rs Adds NodeLogging struct and logging configuration support to Node
core/cu29_derive/src/lib.rs Implements runtime code generation for payload clearing based on logging settings
Cargo.toml Adds the new example to workspace members

Comment thread core/cu29_runtime/src/config.rs Outdated
Comment thread core/cu29_derive/src/lib.rs Outdated
Comment thread examples/cu_nologging_tasks/Cargo.toml Outdated
Comment thread examples/cu_nologging_tasks/Cargo.toml Outdated
Comment thread core/cu29_derive/src/lib.rs Outdated
@gbin

gbin commented Jul 29, 2025

Copy link
Copy Markdown
Collaborator Author

@matthewashton-k do you mind testing that on your project too?

@gbin gbin merged commit e908aa1 into master Jul 29, 2025
6 checks passed
@gbin gbin deleted the gbin/inhibit-log-for-task branch July 29, 2025 20:19
@makeecat makeecat added the enhancement New feature or request label Jan 12, 2026
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.

4 participants