Fix logging to display full variable type on parse failure

Updated the log message to use the full variable type name instead of the base type. This provides more detailed context for debugging failed variable parsing issues.
This commit is contained in:
Sipke Schoorstra 2024-12-12 23:08:48 +01:00
parent 9aed23278e
commit 2cd90ad011

View file

@ -47,7 +47,7 @@ public class VariablePersistenceManager(IStorageDriverManager storageDriverManag
if (!variable.TryParseValue(value, out var parsedValue))
{
logger.LogWarning("Failed to parse value for variable {VariableId} of type {VariableType} with value {Value}", variable.Id, variable.GetType().Name, value);
logger.LogWarning("Failed to parse value for variable {VariableId} of type {VariableType} with value {Value}", variable.Id, variable.GetVariableType().FullName, value);
continue;
}