Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log messages from RequestSender #3057

Merged
merged 1 commit into from
Sep 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ public void CheckVersionWithTestHost()
// Send the protocol negotiation request. Note that we always serialize this data
// without any versioning in the message itself.
var data = this.dataSerializer.SerializePayload(MessageType.VersionCheck, this.highestSupportedVersion);

if (EqtTrace.IsVerboseEnabled)
{
EqtTrace.Verbose("TestRequestSender.CheckVersionWithTestHost: Sending check version message: {0}", data);
}

this.channel.Send(data);

// Wait for negotiation response
Expand All @@ -250,6 +256,12 @@ public void InitializeDiscovery(IEnumerable<string> pathToAdditionalExtensions)
MessageType.DiscoveryInitialize,
pathToAdditionalExtensions,
this.protocolVersion);

if (EqtTrace.IsVerboseEnabled)
{
EqtTrace.Verbose("TestRequestSender.InitializeDiscovery: Sending initialize discovery with message: {0}", message);
}

this.channel.Send(message);
}

Expand All @@ -268,6 +280,12 @@ public void DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEve
MessageType.StartDiscovery,
discoveryCriteria,
this.protocolVersion);

if (EqtTrace.IsVerboseEnabled)
{
EqtTrace.Verbose("TestRequestSender.DiscoverTests: Sending discover tests with message: {0}", message);
}

this.channel.Send(message);
}
#endregion
Expand All @@ -283,7 +301,7 @@ public void InitializeExecution(IEnumerable<string> pathToAdditionalExtensions)
this.protocolVersion);
if (EqtTrace.IsVerboseEnabled)
{
EqtTrace.Verbose("TestRequestSender.InitializeExecution: Sending initializing execution with message: {0}", message);
EqtTrace.Verbose("TestRequestSender.InitializeExecution: Sending initialize execution with message: {0}", message);
}

this.channel.Send(message);
Expand Down Expand Up @@ -534,6 +552,11 @@ private void OnExecutionMessageReceived(object sender, MessageReceivedEventArgs
result,
this.protocolVersion);

if (EqtTrace.IsVerboseEnabled)
{
EqtTrace.Verbose("TestRequestSender.OnExecutionMessageReceived: Sending AttachDebugger with message: {0}", message);
}

this.channel.Send(resultMessage);

break;
Expand Down