diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-04-19 17:16:51 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-04-19 17:16:51 -0600 |
commit | 15e9564fd1e11b3797f0188a494aa66d4622dfb0 (patch) | |
tree | 48f6886d73497e8567cfc996c3f485712a2b65f3 /src/libstore | |
parent | 4697552948b4d9b958b0e8f8ff1b68b5e9608e4e (diff) |
logEI for tunnelLogger and progressbar
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/daemon.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstore/daemon.cc b/src/libstore/daemon.cc index c8daef57c..d985f151b 100644 --- a/src/libstore/daemon.cc +++ b/src/libstore/daemon.cc @@ -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 |