Skip to content

Commit

Permalink
Uncapitalize logging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Meivyn committed Mar 16, 2024
1 parent 6289bc5 commit 55e05b9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions source/SongCore/Data/SongFolderEntries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public SeperateSongFolder(SongFolderEntry folderEntry, SeperateSongFolder? cache
}
catch
{
Logging.Logger.Info($"Failed to Load Image For Separate Folder \"{folderEntry.Name}\"");
Logging.Logger.Info($"Failed to load image for separate folder \"{folderEntry.Name}\"");
}
}

Expand Down Expand Up @@ -142,7 +142,7 @@ public static List<SeperateSongFolder> ReadSeperateFoldersFromFile(string filePa
}
catch
{
Logging.Logger.Warn("Error Reading folders.xml! Make sure the file is properly formatted.");
Logging.Logger.Warn("Error reading folders.xml! Make sure the file is properly formatted.");
}

return result;
Expand Down
6 changes: 3 additions & 3 deletions source/SongCore/HarmonyPatches/CustomSongColorsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ private static void Postfix(MultiplayerLevelScenesTransitionSetupDataSO __instan
return null;
}

if (Plugin.Configuration.CustomSongNoteColors) Logging.Logger.Info("Custom Song Note Colors On");
if (Plugin.Configuration.CustomSongEnvironmentColors) Logging.Logger.Info("Custom Song Environment Colors On");
if (Plugin.Configuration.CustomSongObstacleColors) Logging.Logger.Info("Custom Song Obstacle Colors On");
if (Plugin.Configuration.CustomSongNoteColors) Logging.Logger.Info("Custom song note colors On");
if (Plugin.Configuration.CustomSongEnvironmentColors) Logging.Logger.Info("Custom song environment colors On");
if (Plugin.Configuration.CustomSongObstacleColors) Logging.Logger.Info("Custom song obstacle colors On");

var saberLeft = (songData._colorLeft == null || !Plugin.Configuration.CustomSongNoteColors)
? currentColorScheme.saberAColor
Expand Down
28 changes: 14 additions & 14 deletions source/SongCore/Loader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void AddOfficialBeatmapLevelsRepository(BeatmapLevelsRepository levelsRepository
}
catch (Exception ex)
{
Logging.Logger.Error("Failed To Load Cached WIP Levels: ");
Logging.Logger.Error("Failed to load cached WIP levels: ");
Logging.Logger.Error(ex);
}
}
Expand All @@ -377,7 +377,7 @@ void AddOfficialBeatmapLevelsRepository(BeatmapLevelsRepository levelsRepository
}
catch (Exception ex)
{
Logging.Logger.Error("Failed To Load Cached WIP Levels:");
Logging.Logger.Error("Failed to load cached WIP levels:");
Logging.Logger.Error(ex);
}
}
Expand Down Expand Up @@ -411,7 +411,7 @@ void AddOfficialBeatmapLevelsRepository(BeatmapLevelsRepository levelsRepository

if (results.Length == 0)
{
Logging.Logger.Notice($"Folder: '{folder}' is missing {CustomLevelPathHelper.kStandardLevelInfoFilename} files!");
Logging.Logger.Notice($"Folder: '{folder}' is missing {CustomLevelPathHelper.kStandardLevelInfoFilename} file!");
return;
}

Expand Down Expand Up @@ -518,7 +518,7 @@ void AddOfficialBeatmapLevelsRepository(BeatmapLevelsRepository levelsRepository

if (results.Length == 0)
{
Logging.Logger.Notice($"Folder: '{folder}' is missing {CustomLevelPathHelper.kStandardLevelInfoFilename} files!");
Logging.Logger.Notice($"Folder: '{folder}' is missing {CustomLevelPathHelper.kStandardLevelInfoFilename} file!");
continue;
}

Expand Down Expand Up @@ -588,7 +588,7 @@ void AddOfficialBeatmapLevelsRepository(BeatmapLevelsRepository levelsRepository
}
catch (Exception ex)
{
Logging.Logger.Error($"Failed to load Separate Folder{SeperateSongFolders[k].SongFolderEntry.Name}");
Logging.Logger.Error($"Failed to load separate folder{SeperateSongFolders[k].SongFolderEntry.Name}");
Logging.Logger.Error(ex);
}
}
Expand Down Expand Up @@ -681,7 +681,7 @@ await UnityMainThreadTaskScheduler.Factory.StartNew(() =>
}
catch (Exception ex)
{
Logging.Logger.Error("Failed to Setup LevelPacks:");
Logging.Logger.Error("Failed to setup LevelPacks:");
Logging.Logger.Error(ex);
}

Expand Down Expand Up @@ -709,7 +709,7 @@ await UnityMainThreadTaskScheduler.Factory.StartNew(() =>
}
catch (Exception ex)
{
Logging.Logger.Warn($"Song Loading Task Failed. {ex.Message}");
Logging.Logger.Warn($"Song loading task failed. {ex.Message}");
return;
}

Expand All @@ -719,7 +719,7 @@ await UnityMainThreadTaskScheduler.Factory.StartNew(() =>
}
else
{
Logging.Logger.Warn($"Song Loading Task Cancelled.");
Logging.Logger.Warn($"Song loading task cancelled.");
}
}

Expand Down Expand Up @@ -799,7 +799,7 @@ private void DeleteSingleSong(string folderPath, bool deleteFolder)
}
catch (Exception ex)
{
Logging.Logger.Error($"Exception trying to Delete song: {folderPath}");
Logging.Logger.Error($"Exception trying to delete song: {folderPath}");
Logging.Logger.Error(ex);
}
}
Expand Down Expand Up @@ -851,7 +851,7 @@ private void DeleteSingleSong(string folderPath, bool deleteFolder)
}
catch (Exception e)
{
Logging.Logger.Error($"Failed to Load Song: {songPath}");
Logging.Logger.Error($"Failed to load song: {songPath}");
Logging.Logger.Error(e);
beatmapLevel = null;
hash = null;
Expand Down Expand Up @@ -1125,7 +1125,7 @@ private static void GetSongDuration(StandardLevelInfoSaveData saveData, BeatmapL
{
// janky, but whatever
Collections.LevelPathDictionary.TryGetValue(level.levelID, out var customLevelPath);
Logging.Logger.Warn($"Failed to parse song length from Ogg file, Approximating using Map length. Song: {customLevelPath}");
Logging.Logger.Warn($"Failed to parse song length from audio file, approximating using map length. Song: {customLevelPath}");
length = GetLengthFromMap(saveData, level, songPath);
}
}
Expand All @@ -1149,7 +1149,7 @@ private static void GetSongDuration(StandardLevelInfoSaveData saveData, BeatmapL
}
catch (Exception ex)
{
Logging.Logger.Warn("Failed to Parse Song Duration");
Logging.Logger.Warn("Failed to parse song duration");
Logging.Logger.Warn(ex);
}
}
Expand Down Expand Up @@ -1249,7 +1249,7 @@ bool FindBytes(byte[] bytes, int searchLength)
}
else
{
Logging.Logger.Warn($"could not find rate for {oggFile}");
Logging.Logger.Warn($"Could not find rate for {oggFile}");
return -1;
}

Expand Down Expand Up @@ -1280,7 +1280,7 @@ bool FindBytes(byte[] bytes, int searchLength)

if (lastSample == -1)
{
Logging.Logger.Warn($"could not find lastSample for {oggFile}");
Logging.Logger.Warn($"Could not find lastSample for {oggFile}");
return -1;
}

Expand Down

0 comments on commit 55e05b9

Please sign in to comment.