Skip to content

Commit

Permalink
Use getStandardError()
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Feb 17, 2025
1 parent bc66a9b commit c0c1469
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/build-remote/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static bool allSupportedLocally(Store & store, const std::set<std::string>& requ
static int main_build_remote(int argc, char * * argv)
{
{
logger = makeJSONLogger(STDERR_FILENO);
logger = makeJSONLogger(getStandardError());

/* Ensure we don't get any SSH passphrase or host key popups. */
unsetenv("DISPLAY");
Expand Down
2 changes: 1 addition & 1 deletion src/libmain/loggers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Logger * makeDefaultLogger() {
case LogFormat::rawWithLogs:
return makeSimpleLogger(true);
case LogFormat::internalJSON:
return makeJSONLogger(STDERR_FILENO);
return makeJSONLogger(getStandardError());
case LogFormat::bar:
return makeProgressBar();
case LogFormat::barWithLogs: {
Expand Down
2 changes: 1 addition & 1 deletion src/libstore/unix/build/local-derivation-goal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,7 @@ void LocalDerivationGoal::runChild()
/* Execute the program. This should not return. */
if (drv->isBuiltin()) {
try {
logger = makeJSONLogger(STDERR_FILENO);
logger = makeJSONLogger(getStandardError());

std::map<std::string, Path> outputs;
for (auto & e : drv->outputs)
Expand Down

0 comments on commit c0c1469

Please sign in to comment.