Skip to content

Commit 4d0de2d

Browse files
authored
Update TiledVAEModule.cs
Logger correction
1 parent e25a344 commit 4d0de2d

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

StabilityMatrix.Avalonia/ViewModels/Inference/Modules/TiledVAEModule.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
using StabilityMatrix.Core.Models.Api.Comfy.Nodes;
77
using NLog;
88

9-
109
namespace StabilityMatrix.Avalonia.ViewModels.Inference.Modules;
1110

1211
[ManagedService]
1312
[RegisterTransient<TiledVAEModule>]
1413
public class TiledVAEModule : ModuleBase
1514
{
15+
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
16+
1617
public TiledVAEModule(IServiceManager<ViewModelBase> vmFactory)
1718
: base(vmFactory)
1819
{
19-
this.logger = logger;
2020
Title = "Tiled VAE Decode";
2121
AddCards(vmFactory.Get<TiledVAECardViewModel>());
2222
}
@@ -36,11 +36,8 @@ protected override void OnApplyStep(ModuleApplyStepEventArgs e)
3636
var latent = builder.Connections.Primary.AsT0;
3737
var vae = builder.Connections.GetDefaultVAE();
3838

39-
logger.LogDebug("TiledVAE: Injecting TiledVAEDecode");
40-
logger.LogDebug(
41-
"UseCustomTemporalTiling value at runtime: {value}",
42-
card.UseCustomTemporalTiling
43-
);
39+
logger.Debug("TiledVAE: Injecting TiledVAEDecode");
40+
logger.Debug("UseCustomTemporalTiling value at runtime: {value}", card.UseCustomTemporalTiling);
4441

4542
var node = builder.Nodes.AddTypedNode(
4643
new ComfyNodeBuilder.TiledVAEDecode

0 commit comments

Comments
 (0)