[PTRun]Add logs to check Web Browser detection (#18831)

* [PTRun]Add logs to check Web Browser detection

* Use proper initial value

* Add punctuation to the end of the log message
This commit is contained in:
Jaime Bernardo
2022-06-14 21:04:30 +01:00
committed by GitHub
parent f5f8861eac
commit 244394865f
2 changed files with 14 additions and 5 deletions

View File

@@ -150,7 +150,7 @@ namespace Wox.Infrastructure
{
if (string.IsNullOrEmpty(pattern))
{
Log.Warn("Trying to run OpenCommandInShell with an empty pattern. The default browser definition might have issues.", typeof(Helper));
Log.Warn($"Trying to run OpenCommandInShell with an empty pattern. The default browser definition might have issues. Path: '${path ?? string.Empty}' ; Arguments: '${arguments ?? string.Empty}' ; Working Directory: '${workingDir ?? string.Empty}'", typeof(Helper));
}
else if (pattern.Contains("%1", StringComparison.Ordinal))
{