Add drive format (fs) to log

This commit is contained in:
Matt Nadareski
2023-01-20 22:55:13 -08:00
parent 9911446bf9
commit de18609e00
3 changed files with 14 additions and 1 deletions

View File

@@ -39,6 +39,7 @@
- Use msbuild for .NET Framework 4.8
- Update nuget packages
- ReadAllText not ReadAllLines
- Add drive format (fs) to log
### 2.4 (2022-10-26)
- Update to DIC 20211001

View File

@@ -491,6 +491,18 @@ namespace MPF.Core.Data
#region Helpers
/// <summary>
/// Get the media type for a device path
/// </summary>
/// <returns>MediaType, null on error</returns>
private (MediaType?, string) GetMediaTypeFromFilesystemName()
{
switch (this.DriveFormat)
{
default: return (null, $"Unrecognized format: {this.DriveFormat}");
}
}
#if NETFRAMEWORK
/// <summary>

View File

@@ -850,7 +850,7 @@ namespace MPF.UI.ViewModels
// If the drive is marked active, try to read from it
else if (drive.MarkedActive)
{
App.Logger.VerboseLog($"Trying to detect media type for drive {drive.Letter}.. ");
App.Logger.VerboseLog($"Trying to detect media type for drive {drive.Letter} [{drive.DriveFormat}].. ");
(MediaType? detectedMediaType, string errorMessage) = drive.GetMediaType();
// If we got an error message, post it to the log