Skip to content

Commit bcb9cd8

Browse files
Fixes the warning when using only plugin-specific URLs to watch. Closes #1180 (#1182)
1 parent eb1df0c commit bcb9cd8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev-proxy/CommandHandlers/ProxyCommandHandler.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public async Task<int> InvokeAsync(InvocationContext context)
3737
_logger.LogWarning("You haven't configured any plugins. Please add plugins to your configuration file. Dev Proxy will exit.");
3838
return 1;
3939
}
40-
if (Configuration.UrlsToWatch.Count == 0)
40+
if (_urlsToWatch.Count == 0)
4141
{
42-
_logger.LogWarning("You haven't configured any URLs to watch. Please add URLs to your configuration file or use the --urls-to-watch option. Dev Proxy will exit.");
42+
_logger.LogError("You haven't configured any URLs to watch. Please add URLs to your configuration file or use the --urls-to-watch option. Dev Proxy will exit.");
4343
return 1;
4444
}
4545

dev-proxy/ProxyEngine.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
9191

9292
if (!_urlsToWatch.Any())
9393
{
94-
_logger.LogInformation("No URLs to watch configured. Please add URLs to watch in the devproxyrc.json config file.");
94+
_logger.LogError("No URLs to watch configured. Please add URLs to watch in the devproxyrc.json config file.");
9595
return;
9696
}
9797

0 commit comments

Comments
 (0)