File tree 2 files changed +8
-4
lines changed
NUnitConsole/nunit3-console
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,12 @@ public static int Main(string[] args)
106
106
if ( Options . WorkDirectory != null )
107
107
engine . WorkDirectory = Options . WorkDirectory ;
108
108
109
- if ( Options . InternalTraceLevel != null )
110
- engine . InternalTraceLevel = ( InternalTraceLevel ) Enum . Parse ( typeof ( InternalTraceLevel ) , Options . InternalTraceLevel ) ;
109
+ //if (Options.InternalTraceLevel != null)
110
+ // engine.InternalTraceLevel = (InternalTraceLevel)Enum.Parse(typeof(InternalTraceLevel), Options.InternalTraceLevel);
111
+ // See PR 1114 https://github.com/nunit/nunit-console/pull/1214/files
112
+ engine . InternalTraceLevel = Options . InternalTraceLevel != null
113
+ ? ( InternalTraceLevel ) Enum . Parse ( typeof ( InternalTraceLevel ) , Options . InternalTraceLevel )
114
+ : InternalTraceLevel . Off ;
111
115
112
116
try
113
117
{
Original file line number Diff line number Diff line change @@ -62,8 +62,8 @@ public static void Main(string[] args)
62
62
}
63
63
}
64
64
65
- var logName = $ "nunit-agent_{ pid } .log";
66
- InternalTrace . Initialize ( Path . Combine ( workDirectory , logName ) , traceLevel ) ;
65
+ // var logName = $"nunit-agent_{pid}.log";
66
+ // InternalTrace.Initialize(Path.Combine(workDirectory, logName), traceLevel); // See PR 1214 https://github.com/nunit/nunit-console/pull/1214/files
67
67
log = InternalTrace . GetLogger ( typeof ( NUnitTestAgent ) ) ;
68
68
69
69
log . Info ( "Agent process {0} starting" , pid ) ;
You can’t perform that action at this time.
0 commit comments