refactor: Improve logging
This commit is contained in:
parent
38a3bc1537
commit
56934e3183
1 changed files with 4 additions and 0 deletions
|
|
@ -69,9 +69,13 @@ public class SymlinkDownloader(String uri, String destinationPath, String path,
|
||||||
// If this somehow fails, fallback to the search below.
|
// If this somehow fails, fallback to the search below.
|
||||||
if (File.Exists(potentialFilePath))
|
if (File.Exists(potentialFilePath))
|
||||||
{
|
{
|
||||||
|
_logger.Debug($"Found file {path} at {potentialFilePath} using direct search");
|
||||||
file = potentialFilePath;
|
file = potentialFilePath;
|
||||||
goto skipFileSearch;
|
goto skipFileSearch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log if the file wasn't found and continue searching.
|
||||||
|
_logger.Warning($"Expected file {path} to be at {potentialFilePath} but it wasn't found. Continuing search (this will probably fail).");
|
||||||
}
|
}
|
||||||
|
|
||||||
var potentialFilePaths = new List<String> { searchPath };
|
var potentialFilePaths = new List<String> { searchPath };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue