Skip to content

Commit

Permalink
PR feedback: Comment distributed logger registration
Browse files Browse the repository at this point in the history
  • Loading branch information
ladipro committed Aug 2, 2021
1 parent aefc16f commit bdf6b18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MSBuild/XMake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3133,6 +3133,8 @@ private static void ProcessFileLoggers(string[][] groupedFileLoggerParameters, L
LoggerVerbosity defaultFileLoggerVerbosity = LoggerVerbosity.Detailed;
fileLogger.Verbosity = defaultFileLoggerVerbosity;

// Check to see if there is a possibility we will be logging from an out-of-proc node.
// If so (we're multi-proc or the in-proc node is disabled), we register a distributed logger.
if (cpuCount == 1 && Environment.GetEnvironmentVariable("MSBUILDNOINPROCNODE") != "1")
{
// We've decided to use the MP logger even in single proc mode.
Expand Down Expand Up @@ -3197,6 +3199,8 @@ List<ILogger> loggers
consoleParameters = AggregateParameters(consoleParameters, consoleLoggerParameters);
}

// Check to see if there is a possibility we will be logging from an out-of-proc node.
// If so (we're multi-proc or the in-proc node is disabled), we register a distributed logger.
if (cpuCount == 1 && Environment.GetEnvironmentVariable("MSBUILDNOINPROCNODE") != "1")
{
// We've decided to use the MP logger even in single proc mode.
Expand Down

0 comments on commit bdf6b18

Please sign in to comment.