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

Enabled Diag logging for DataCollector #589

Merged
merged 11 commits into from
Mar 16, 2017

Conversation

harshjain2
Copy link
Contributor

@harshjain2 harshjain2 commented Mar 10, 2017

Enabled Diag logging for DataCollector.

Related to : #309

@msftclas
Copy link

@harshjain2,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

/// <summary>
/// Helper class for processing argumets passed to a process.
/// </summary>
public class CommandLineArgumentsHelper
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be public?
Nit: typo in docs

[TestClass]
public class CommandLineArgumentsHelperTests
{
[TestMethod]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add case for
I) null args
ii) --hello --world

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@@ -216,7 +219,20 @@ private IList<string> GetCommandLineArguments(int portNumber)
commandlineArguments.Add(PortOption);
commandlineArguments.Add(portNumber.ToString());

if (!string.IsNullOrEmpty(EqtTrace.LogFile))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.


requestHandler.InitializeCommunication(port);

// Can only do this after InitializeCommunication because datacollector cannot "Send Log" unless communications are initialized
if (!string.IsNullOrEmpty(EqtTrace.LogFile))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for acceptance test for diag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implemented in acceptance tests for data collectors.

Copy link
Contributor

@singhsarab singhsarab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with suggestions.

@harshjain2 harshjain2 merged commit 342062c into microsoft:master Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants