Skip to content

#788: added possibilit to disable logging per script #789

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

bugy
Copy link
Owner

@bugy bugy commented Apr 23, 2025

#788: added possibilit to disable logging per script

@bugy bugy requested a review from Copilot April 23, 2025 07:17
Copy link

@Copilot 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 introduces the ability to disable logging on a per-script basis by adding an "enabled" flag to the LoggingConfig class. It updates the JSON parsing to accept the flag and modifies the logging start routine to skip log creation when logging is disabled.

  • Adds an "enabled" parameter (default True) in LoggingConfig.
  • Parses the "enabled" flag from JSON configuration.
  • Updates the logging startup in src/execution/logging.py to check the flag before proceeding.

Reviewed Changes

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

File Description
src/model/server_conf.py Adds the "enabled" flag to LoggingConfig and updates JSON parsing to read it.
src/execution/logging.py Checks the logging configuration; if disabled, logs an info message and skips logging setup.

@bugy
Copy link
Owner Author

bugy commented Apr 23, 2025

@bugy bugy merged commit e6ba2f4 into master Apr 23, 2025
2 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.

1 participant