Skip to content

feat(framework): Enable timestamped logging by default#6727

Merged
danieljanes merged 3 commits intomainfrom
enable-ts
Mar 9, 2026
Merged

feat(framework): Enable timestamped logging by default#6727
danieljanes merged 3 commits intomainfrom
enable-ts

Conversation

@panh99
Copy link
Contributor

@panh99 panh99 commented Mar 9, 2026

image

@panh99 panh99 requested a review from tanertopal as a code owner March 9, 2026 20:07
Copilot AI review requested due to automatic review settings March 9, 2026 20:07
@panh99 panh99 requested a review from danieljanes as a code owner March 9, 2026 20:07
@github-actions github-actions bot added the Maintainer Used to determine what PRs (mainly) come from Flower maintainers. label Mar 9, 2026
@danieljanes danieljanes enabled auto-merge (squash) March 9, 2026 20:09
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

Enables timestamped console logging by default in the Flower Python framework logger to provide more informative logs without requiring DEBUG level.

Changes:

  • Set the default ConsoleHandler configuration to always include timestamps.
  • Update the FLWR_LOG_LEVEL env-var configuration path to always keep timestamps enabled.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 130 to +135
# Set log level via env var (show timestamps for `DEBUG`)
if log_level := os.getenv("FLWR_LOG_LEVEL"):
log_level = log_level.upper()
try:
is_debug = log_level == "DEBUG"
update_console_handler(level=log_level, timestamps=is_debug, colored=True)
update_console_handler(level=log_level, timestamps=True, colored=True)
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The inline comment above this block says timestamps are shown for DEBUG, but this change makes timestamps always enabled (both by default and when FLWR_LOG_LEVEL is set). Update the comment (and consider dropping the now-redundant timestamps=True argument here) to match the new behavior and avoid confusion for future readers.

Copilot uses AI. Check for mistakes.
@danieljanes danieljanes merged commit dbf9073 into main Mar 9, 2026
70 checks passed
@danieljanes danieljanes deleted the enable-ts branch March 9, 2026 20:27
panh99 added a commit that referenced this pull request Mar 10, 2026
danieljanes pushed a commit that referenced this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Maintainer Used to determine what PRs (mainly) come from Flower maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants