Skip to content

Commit

Permalink
Dealing with the code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a-bezrukov committed Apr 27, 2021
1 parent 3f02e02 commit 8482413
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,8 @@ static std::string LogTimestampStr(const std::string &str, std::atomic_bool *fSt
int LogPrintStr(const std::string &str)
{
//A temporary fix for https://github.com/firoorg/firo/issues/1011
if (fNoDebug) {
if (str.size() < 6)
return 0;
else if (strncmp(str.data(), "ERROR:", 6) != 0)
return 0;
}
if (fNoDebug && str.compare(0, 6, "ERROR:", 0, 6) != 0)
return 0;

int ret = 0; // Returns total number of characters written
static std::atomic_bool fStartedNewLine(true);
Expand Down

0 comments on commit 8482413

Please sign in to comment.