fix log level
This commit is contained in:
@@ -51,7 +51,7 @@ public sealed class ModelDecimationService
|
||||
return;
|
||||
}
|
||||
|
||||
_logger.LogInformation("Queued model decimation for {Hash}", hash);
|
||||
_logger.LogDebug("Queued model decimation for {Hash}", hash);
|
||||
|
||||
_decimationDeduplicator.GetOrStart(hash, async () =>
|
||||
{
|
||||
@@ -174,7 +174,7 @@ public sealed class ModelDecimationService
|
||||
{
|
||||
if (!TryGetDecimationSettings(out var settings))
|
||||
{
|
||||
_logger.LogInformation("Model decimation disabled or invalid settings for {Hash}", hash);
|
||||
_logger.LogDebug("Model decimation disabled or invalid settings for {Hash}", hash);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
@@ -198,11 +198,11 @@ public sealed class ModelDecimationService
|
||||
|
||||
if (!TryNormalizeSettings(settings, out var normalized))
|
||||
{
|
||||
_logger.LogInformation("Model decimation skipped for {Hash}; invalid settings.", hash);
|
||||
_logger.LogDebug("Model decimation skipped for {Hash}; invalid settings.", hash);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
_logger.LogInformation(
|
||||
_logger.LogDebug(
|
||||
"Starting model decimation for {Hash} (threshold {Threshold}, ratio {Ratio:0.##}, normalize tangents {NormalizeTangents}, avoid body intersection {AvoidBodyIntersection})",
|
||||
hash,
|
||||
normalized.TriangleThreshold,
|
||||
@@ -229,7 +229,7 @@ public sealed class ModelDecimationService
|
||||
if (!MdlDecimator.TryDecimate(sourcePath, destination, normalized, _logger))
|
||||
{
|
||||
_failedHashes[hash] = 1;
|
||||
_logger.LogInformation("Model decimation skipped for {Hash}", hash);
|
||||
_logger.LogDebug("Model decimation skipped for {Hash}", hash);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ public sealed class ModelDecimationService
|
||||
{
|
||||
RegisterDecimatedModel(hash, sourcePath, destination);
|
||||
}
|
||||
_logger.LogInformation("Decimated model {Hash} -> {Path}", hash, destination);
|
||||
_logger.LogDebug("Decimated model {Hash} -> {Path}", hash, destination);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user