Remove some debug logging

This commit is contained in:
beerpsi 2024-05-27 11:43:33 +07:00
parent 549ebaf02f
commit d0d3658e9a
2 changed files with 4 additions and 7 deletions

View File

@ -17,7 +17,6 @@ public class SxtReader(NotesReferences refs) : SxtReaderBase(refs)
throw new Exception($"Slide head at row {rowIdx} does not declare a valid slide ID"); throw new Exception($"Slide head at row {rowIdx} does not declare a valid slide ID");
} }
System.Console.WriteLine("[MoreChartFormats] Saving slide head with ID {0}", row.SlideId);
SlideHeads[row.SlideId] = row; SlideHeads[row.SlideId] = row;
return; return;
} }
@ -74,7 +73,6 @@ public class SxtReader(NotesReferences refs) : SxtReaderBase(refs)
note.end.copy(rowTime); note.end.copy(rowTime);
} }
System.Console.WriteLine("[MoreChartFormats] [SXT] Adding note {0} at {1}", note.type.getEnumName(), note.time.getBar());
Refs.Notes._noteData.Add(note); Refs.Notes._noteData.Add(note);
NoteIndex++; NoteIndex++;
} }

View File

@ -4,14 +4,12 @@
using System; using System;
using System.IO; using System.IO;
using System.Xml.Serialization; using System.Xml.Serialization;
using MAI2.Util;
using Manager.MaiStudio.Serialize; using Manager.MaiStudio.Serialize;
using MonoMod; using MonoMod;
using MoreChartFormats; using MoreChartFormats;
using MoreChartFormats.MaiSxt; using MoreChartFormats.MaiSxt;
using MoreChartFormats.Simai; using MoreChartFormats.Simai;
using MoreChartFormats.Simai.Errors; using MoreChartFormats.Simai.Errors;
using MoreChartFormats.Simai.Structures;
namespace Manager; namespace Manager;
@ -153,22 +151,23 @@ class patch_NotesReader : NotesReader
System.Console.WriteLine("[MoreChartFormats] [Simai] Calculating chart data"); System.Console.WriteLine("[MoreChartFormats] [Simai] Calculating chart data");
calcAll(); calcAll();
#if DEBUG
System.Console.WriteLine("[MoreChartFormats] [Simai] Loaded {0} notes", _total.GetAllNoteNum()); System.Console.WriteLine("[MoreChartFormats] [Simai] Loaded {0} notes", _total.GetAllNoteNum());
System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} taps", _total.GetTapNum()); System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} taps", _total.GetTapNum());
System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} holds", _total.GetHoldNum()); System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} holds", _total.GetHoldNum());
System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} slides", _total.GetSlideNum()); System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} slides", _total.GetSlideNum());
System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} touches", _total.GetTouchNum()); System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} touches", _total.GetTouchNum());
System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} break", _total.GetBreakNum()); System.Console.WriteLine("[MoreChartFormats] [Simai] > {0} break", _total.GetBreakNum());
#endif
} }
catch (SimaiException e) catch (SimaiException e)
{ {
System.Console.WriteLine($"[MoreChartFormats] There was an error loading the chart at line {e.line}, col {e.character}: {e} "); System.Console.WriteLine($"[MoreChartFormats] [Simai] There was an error loading the chart at line {e.line}, col {e.character}: {e} ");
return false; return false;
} }
catch (Exception e) catch (Exception e)
{ {
System.Console.WriteLine($"[MoreChartFormats] There was an error loading the chart: {e}"); System.Console.WriteLine($"[MoreChartFormats] [Simai] There was an error loading the chart: {e}");
return false; return false;
} }