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

v1.0 hotfix #10

Merged
merged 4 commits into from
May 3, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
do not print prefix if no prefix
  • Loading branch information
zyx-billy committed Apr 26, 2018
commit fc607e93919b8f88b399568484be2e2139731798
5 changes: 4 additions & 1 deletion lib/logger/logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ namespace Logger {
fatal_logger &operator<<(T val) {
if (!prefix_used) {
prefix_used = true;
std::cerr << "fatal: " << prefix << std::endl;
std::cerr << "fatal: ";
if (prefix.length() > 0) {
std::cerr << prefix << std::endl;
}
}
std::cerr << val;
return *this;
Expand Down