Skip to content

Fix: EOL was missing for custom log lines with Serial.printf#421

Merged
mathieucarbou merged 1 commit intomainfrom
fix-logging
Apr 7, 2026
Merged

Fix: EOL was missing for custom log lines with Serial.printf#421
mathieucarbou merged 1 commit intomainfrom
fix-logging

Conversation

@mathieucarbou
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown

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

Note

Copilot was unable to run its full agentic suite in this review.

This PR ensures log lines emitted via Serial.printf end with an EOL, improving readability and preventing concatenated log output.

Changes:

  • Append \n to Serial.printf-based logging macros so each log call ends in a newline.
  • Restructure logging preprocessor branches to separate custom logging from built-in debug/framework logging.
  • Fix a printf type mismatch in a verbose websocket log by casting plen to uint32_t for the PRIu32 format.

Reviewed changes

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

File Description
src/AsyncWebSocket.cpp Adjusts a verbose log call to match PRIu32 formatting and improves readability by splitting arguments.
src/AsyncWebServerLogging.h Adds newline terminators to Serial.printf log macros and refactors preprocessor branching for logging modes.

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

Copy link
Copy Markdown

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@mathieucarbou mathieucarbou merged commit 892c25f into main Apr 7, 2026
37 checks passed
@mathieucarbou mathieucarbou deleted the fix-logging branch April 7, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants