Merge pull request #3558 from LnL7/ssh-ng-stderr
remote-store: don't log raw stderr by default
This commit is contained in:
commit
3ebfbecdd1
2 changed files with 14 additions and 2 deletions
|
@ -779,8 +779,10 @@ std::exception_ptr RemoteStore::Connection::processStderr(Sink * sink, Source *
|
||||||
return std::make_exception_ptr(Error(status, error));
|
return std::make_exception_ptr(Error(status, error));
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (msg == STDERR_NEXT)
|
else if (msg == STDERR_NEXT) {
|
||||||
printError(chomp(readString(from)));
|
string s = chomp(readString(from));
|
||||||
|
printMsg(lvlVomit, "stderr %s", s);
|
||||||
|
}
|
||||||
|
|
||||||
else if (msg == STDERR_START_ACTIVITY) {
|
else if (msg == STDERR_START_ACTIVITY) {
|
||||||
auto act = readNum<ActivityId>(from);
|
auto act = readNum<ActivityId>(from);
|
||||||
|
|
|
@ -63,6 +63,16 @@ public:
|
||||||
writeToStderr(prefix + filterANSIEscapes(fs.s, !tty) + "\n");
|
writeToStderr(prefix + filterANSIEscapes(fs.s, !tty) + "\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void result(ActivityId act, ResultType type, const std::vector<Field> & fields) override
|
||||||
|
{
|
||||||
|
if (type == resBuildLogLine || type == resPostBuildLogLine) {
|
||||||
|
assert(0 < fields.size());
|
||||||
|
assert(fields[0].type == Logger::Field::tString);
|
||||||
|
auto lastLine = fields[0].s;
|
||||||
|
log(lvlInfo, lastLine);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
|
void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
|
||||||
const std::string & s, const Fields & fields, ActivityId parent)
|
const std::string & s, const Fields & fields, ActivityId parent)
|
||||||
override
|
override
|
||||||
|
|
Loading…
Reference in a new issue