1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

logEI for tunnelLogger and progressbar

This commit is contained in:
Ben Burdette 2020-04-19 17:16:51 -06:00
parent 4697552948
commit 15e9564fd1
2 changed files with 13 additions and 1 deletions

View file

@ -75,6 +75,14 @@ struct TunnelLogger : public Logger
void logEI(const ErrorInfo & ei) override
{
if (ei.level > verbosity) return;
std::stringstream oss;
oss << ei;
StringSink buf;
buf << STDERR_NEXT << oss.str() << "\n"; // (fs.s + "\n");
enqueueMsg(*buf.s);
}
/* startWork() means that we're starting an operation for which we