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

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

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

itzmeanjan
Copy link
Contributor

Closes #1699

Closes google#1699

Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
Copy link

google-cla bot commented Nov 13, 2023

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.

@@ -254,7 +254,7 @@ bool PerfCounters::IsCounterSupported(const std::string&) { return false; }
PerfCounters PerfCounters::Create(
const std::vector<std::string>& counter_names) {
if (!counter_names.empty()) {
GetErrorLogInstance() << "Performance counters not supported.";
GetErrorLogInstance() << "Performance counters not supported.\n";
Copy link
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
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
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
Copy link
Member

dmah42 commented Nov 13, 2023

decided we can live with the \n :)

@dmah42 dmah42 merged commit 93a96a2 into google:main Nov 13, 2023
54 of 60 checks passed
@itzmeanjan
Copy link
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