Skip to content

Commit 67c4ee8

Browse files
Makes --log-level a global option. Closes #1077 (#1078)
1 parent 477453c commit 67c4ee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev-proxy/ProxyHost.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ public RootCommand GetRootCommand(ILogger logger)
338338
var command = new RootCommand {
339339
_portOption,
340340
_ipAddressOption,
341-
// _logLevelOption is set while initializing the Program
342-
// As such, it's always set here
343-
_logLevelOption!,
344341
_recordOption,
345342
_watchPidsOption,
346343
_watchProcessNamesOption,
@@ -358,6 +355,9 @@ public RootCommand GetRootCommand(ILogger logger)
358355
_envOption
359356
};
360357
command.Description = "Dev Proxy is a command line tool for testing Microsoft Graph, SharePoint Online and any other HTTP APIs.";
358+
// _logLevelOption is set while initializing the Program
359+
// As such, it's always set here
360+
command.AddGlobalOption(_logLevelOption!);
361361

362362
var msGraphDbCommand = new Command("msgraphdb", "Generate a local SQLite database with Microsoft Graph API metadata")
363363
{

0 commit comments

Comments
 (0)