-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[trivial] Add newlines to end of log messages. #12887
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
Conversation
Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n.
|
utACK 5b10ab0 Worth fixing this more generally in |
|
Mind to add a linter for this, since we have those issues every couple of months? |
There are legitimate uses for this, for example to build up a log message from multiple parts: Line 83 in 1d54004
and Line 373 in 1d54004
(I suppose those could be changed to build a string, which is then passed to |
|
utACK 5b10ab0 |
5b10ab0 [trivial] Add newlines to end of log messages. (John Newbery) Pull request description: Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n. Tree-SHA512: 88677afe85c88ce9f58312430e8881916bd76bbc8cd353ff81c97b3de8356680503160992c0ef3ea192b4694e848e9ca2480dbc38fea1776903b3784497f1af6
Could have the linter check for a specific comment
That would defeat the intent, to log partial lines to show progress. |
Yes, good idea. Longer term, it could be good to have a
Yes, good point |
Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n. Github-Pull: bitcoin#12887 Rebased-From: 5b10ab0
Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n. Github-Pull: bitcoin#12887 Rebased-From: 5b10ab0
Log messages should terminate with a '\n', or the following log will be written to the same line without a timestamp. Fix a couple of cases where the message is not terminated with a \n. Github-Pull: bitcoin#12887 Rebased-From: 5b10ab0
Log messages should terminate with a '\n', or the following log will be
written to the same line without a timestamp. Fix a couple of cases
where the message is not terminated with a \n.