mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
* Write messages to stderr in a slightly more atomic way. Useful when
there are several parallel processes.
This commit is contained in:
parent
d7f40357e3
commit
0e783e5579
1 changed files with 2 additions and 1 deletions
|
@ -401,7 +401,8 @@ void printMsg_(Verbosity level, const format & f)
|
||||||
prefix += "| ";
|
prefix += "| ";
|
||||||
else if (logType == ltEscapes && level != lvlInfo)
|
else if (logType == ltEscapes && level != lvlInfo)
|
||||||
prefix = "\033[" + escVerbosity(level) + "s";
|
prefix = "\033[" + escVerbosity(level) + "s";
|
||||||
cerr << format("%1%%2%\n") % prefix % f.str();
|
string s = (format("%1%%2%\n") % prefix % f.str()).str();
|
||||||
|
writeFull(STDERR_FILENO, (const unsigned char *) s.c_str(), s.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue