-
Notifications
You must be signed in to change notification settings - Fork 319
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
Conversation
@harshjain2, |
/// <summary> | ||
/// Helper class for processing argumets passed to a process. | ||
/// </summary> | ||
public class CommandLineArgumentsHelper |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Enabled Diag logging for DataCollector.
Related to : #309