Skip to content

Commit c0c1469

Browse files
committed
Use getStandardError()
1 parent bc66a9b commit c0c1469

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/build-remote/build-remote.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static bool allSupportedLocally(Store & store, const std::set<std::string>& requ
5151
static int main_build_remote(int argc, char * * argv)
5252
{
5353
{
54-
logger = makeJSONLogger(STDERR_FILENO);
54+
logger = makeJSONLogger(getStandardError());
5555

5656
/* Ensure we don't get any SSH passphrase or host key popups. */
5757
unsetenv("DISPLAY");

src/libmain/loggers.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Logger * makeDefaultLogger() {
2727
case LogFormat::rawWithLogs:
2828
return makeSimpleLogger(true);
2929
case LogFormat::internalJSON:
30-
return makeJSONLogger(STDERR_FILENO);
30+
return makeJSONLogger(getStandardError());
3131
case LogFormat::bar:
3232
return makeProgressBar();
3333
case LogFormat::barWithLogs: {

src/libstore/unix/build/local-derivation-goal.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2225,7 +2225,7 @@ void LocalDerivationGoal::runChild()
22252225
/* Execute the program. This should not return. */
22262226
if (drv->isBuiltin()) {
22272227
try {
2228-
logger = makeJSONLogger(STDERR_FILENO);
2228+
logger = makeJSONLogger(getStandardError());
22292229

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

0 commit comments

Comments
 (0)