Skip to content

Add Missing \n at the End of Error Log String#1700

Merged
dmah42 merged 1 commit into
google:mainfrom
itzmeanjan:add-missing-newline
Nov 13, 2023
Merged

Add Missing \n at the End of Error Log String#1700
dmah42 merged 1 commit into
google:mainfrom
itzmeanjan:add-missing-newline

Conversation

@itzmeanjan

Copy link
Copy Markdown
Contributor

Closes #1699

Closes google#1699

Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
@google-cla

google-cla Bot commented Nov 13, 2023

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Comment thread src/perf_counters.cc
const std::vector<std::string>& counter_names) {
if (!counter_names.empty()) {
GetErrorLogInstance() << "Performance counters not supported.";
GetErrorLogInstance() << "Performance counters not supported.\n";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: std::endl is the C++ standard line ending output character.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let me know if you want to change this or if i should just merge it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just seeing this and I would just stick to \n to avoid a STDOUT flush, more @ https://en.cppreference.com/w/cpp/io/manip/endl.

@dmah42

dmah42 commented Nov 13, 2023

Copy link
Copy Markdown
Member

decided we can live with the \n :)

@dmah42 dmah42 merged commit 93a96a2 into google:main Nov 13, 2023
@itzmeanjan

Copy link
Copy Markdown
Contributor Author

Thanks for the review and merge @dmah42 🥂

@itzmeanjan itzmeanjan deleted the add-missing-newline branch November 14, 2023 03:38
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.

[BUG] Missing \n at the End of Console Output

2 participants