fix log level

This commit is contained in:
2026-01-19 09:57:50 +09:00
parent 54d6a0a1a4
commit e8c7539770
2 changed files with 20 additions and 21 deletions

View File

@@ -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;
}