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

move showTrace to new loggerSettings

This commit is contained in:
Ben Burdette 2020-07-02 09:04:31 -06:00
parent 5ae498872a
commit bf2788e4c1
10 changed files with 35 additions and 57 deletions

View file

@ -41,10 +41,9 @@ struct TunnelLogger : public Logger
Sync<State> state_;
unsigned int clientVersion;
bool showTrace;
TunnelLogger(FdSink & to, unsigned int clientVersion)
: to(to), clientVersion(clientVersion), showTrace(false) { }
: to(to), clientVersion(clientVersion) { }
void enqueueMsg(const std::string & s)
{
@ -86,13 +85,6 @@ struct TunnelLogger : public Logger
enqueueMsg(*buf.s);
}
bool getShowTrace() const override {
return showTrace;
}
void setShowTrace(bool showTrace) override {
this->showTrace = showTrace;
}
/* startWork() means that we're starting an operation for which we
want to send out stderr to the client. */
void startWork()