Skip to content
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

[Cleanup] Properly terminate printed log lines #2935

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Fuzzbawls
Copy link
Collaborator

Ensure that every Logprint(f) call is properly terminated with a newline (\n). Not doing this leads to conjoined lines in the log output, which should not happen. There are few instances where an unterminated call is intentional (ie, inside a for loop, with a final call at the end of the loop)

Multi-line calls and daisy-chained calls can use a descriptor comment at the end of the code line (/* Continued */) to denote the log line is continued afterwards.

To prevent future instances of un-terminated log lines, add a linter specifically to check for this.

Ensure that every Logprint(f) call is properly terminated with a newline
 (`\n`). Multi-line calls and daisy-chained calls can use a descriptor
 comment at the end of the code line (`/* Continued */`) to denote the
 log line is continued afterwards.
Ensures that all LogPrint() and LogPrintf() calls are properly
terminated to avoid conjoined lines in the debug.log file.
@Fuzzbawls Fuzzbawls added Cleanup Trivial extremely simple issues labels Sep 1, 2024
@Fuzzbawls Fuzzbawls added this to the 6.0.0 milestone Sep 1, 2024
@Fuzzbawls Fuzzbawls self-assigned this Sep 1, 2024
Copy link

@panleone panleone left a comment

Choose a reason for hiding this comment

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

utACK dade23d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cleanup Trivial extremely simple issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants