Skip to content

Commit 01f82ad

Browse files
mkalkbrennerfreezy
authored andcommitted
disabled verbose logging
1 parent 4995e61 commit 01f82ad

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

LibDmd/Converter/Serum/Serum.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public class Serum : AbstractConverter, IColoredGray6Source, IRgb565Source, ICol
7171
private readonly Color[] _rotationPalette = new Color[64];
7272

7373
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
74-
internal const int MAX_LENGTH_COLOR_ROTATION = 64; // maximum number of new colors in a rotation
7574

7675
private readonly ISerumApi _api;
7776

@@ -148,7 +147,7 @@ public override void Convert(DmdFrame frame)
148147
}
149148

150149
var resultAndRotation = Serum_Colorize(frame.Data);
151-
Logger.Info($"[serum] Colorize returned 0x{resultAndRotation:X8}.");
150+
//Logger.Info($"[serum] Colorize returned 0x{resultAndRotation:X8}.");
152151

153152
// In case of no frame or same frame as before, ReadSerumFrame will read the unmodified structure.
154153
ReadSerumFrame();
@@ -161,7 +160,7 @@ public override void Convert(DmdFrame frame)
161160
if (rotation > 0 && rotation <= 2048) {
162161
StartRotating();
163162
if ((resultAndRotation & 0x40000) > 0) {
164-
Logger.Info($"[serum] Found scene rotation {_serumFrame.triggerID}.");
163+
//Logger.Info($"[serum] Found scene rotation {_serumFrame.triggerID}.");
165164
}
166165
} else {
167166
StopRotating();
@@ -189,7 +188,7 @@ private void StartRotating()
189188
_rotator = Observable
190189
.Interval(TimeSpan.FromMilliseconds(1d/60))
191190
.Subscribe(Rotate);
192-
Logger.Info($"[serum] Rotation started.");
191+
//Logger.Info($"[serum] Rotation started.");
193192
}
194193

195194
private void StopRotating()
@@ -199,7 +198,7 @@ private void StopRotating()
199198
}
200199
_rotator.Dispose();
201200
_rotator = null;
202-
Logger.Info($"[serum] Rotation stopped.");
201+
//Logger.Info($"[serum] Rotation stopped.");
203202
}
204203

205204
private bool UpdateRotations()

0 commit comments

Comments
 (0)