Skip to content

Commit 6279cb4

Browse files
committed
Clean up info logging
1 parent c56738c commit 6279cb4

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

BeatSaberOnline/Controllers/GameController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public void Awake()
7777
IEnumerator RunLobbyCleanup()
7878
{
7979
yield return new WaitUntil(delegate () { Data.Logger.Info("waiting for active: "+ WaitingMenu.Instance.isActiveAndEnabled); return WaitingMenu.Instance.isActiveAndEnabled; });
80-
Logger.Info("Finished song, doing cleanup");
80+
Logger.Debug("Finished song, doing cleanup");
8181
WaitingMenu.Instance.Dismiss();
8282
WaitingMenu.firstInit = true;
8383
WaitingMenu.queuedSong = null;
@@ -143,7 +143,7 @@ public void SongFinished(StandardLevelSceneSetupDataSO sender, LevelCompletionRe
143143
try
144144
{
145145
if (sender == null || levelCompletionResults == null || difficultyBeatmap == null || gameplayModifiers == null) { return; }
146-
Logger.Info("Finished song: " + levelCompletionResults.levelEndStateType + " - " + levelCompletionResults.songDuration + " - - " + levelCompletionResults.endSongTime);
146+
Logger.Debug("Finished song: " + levelCompletionResults.levelEndStateType + " - " + levelCompletionResults.songDuration + " - - " + levelCompletionResults.endSongTime);
147147

148148
PlayerDataModelSO _playerDataModel = Resources.FindObjectsOfTypeAll<PlayerDataModelSO>().First();
149149
_playerDataModel.currentLocalPlayer.playerAllOverallStatsData.soloFreePlayOverallStatsData.UpdateWithLevelCompletionResults(levelCompletionResults);

BeatSaberOnline/Data/Steam/SteamAPI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public static void OnLobbyMatchList(LobbyMatchList_t pCallback, bool bIOFailure)
353353
return;
354354
}
355355
uint numLobbies = pCallback.m_nLobbiesMatching;
356-
Logger.Info($"Found {numLobbies} total lobbies");
356+
Logger.Debug($"Found {numLobbies} total lobbies");
357357
LobbyData.Clear();
358358
MultiplayerListing.refreshLobbyList();
359359
try
@@ -369,7 +369,7 @@ public static void OnLobbyMatchList(LobbyMatchList_t pCallback, bool bIOFailure)
369369
}
370370
} catch (Exception e)
371371
{
372-
Logger.Info(e);
372+
Logger.Error(e);
373373
}
374374

375375
MultiplayerListing.refreshLobbyList();

BeatSaberOnline/Utils/AutoUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static IEnumerator GetLatestVersionDownload()
3838
// Check if the remote version on modsaber is newer than what we have and if that version is approved
3939
if (latestVersion <= currentVersion && status != "approved") yield break;
4040

41-
Data.Logger.Info($"Found a new version, lets download it {result[0]["files"]["steam"]["url"].Value}");
41+
Data.Logger.Debug($"Found a new version, lets download it {result[0]["files"]["steam"]["url"].Value}");
4242

4343
yield break;
4444

BeatSaberOnline/Utils/FileUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static IEnumerator ExtractZip(string zipPath, string extractPath, string
6161
}
6262
catch (Exception e)
6363
{
64-
Data.Logger.Info($"An error occured while trying to extract \"{zipPath}\"!");
64+
Data.Logger.Debug($"An error occured while trying to extract \"{zipPath}\"!");
6565
Data.Logger.Error(e);
6666
yield break;
6767
}
@@ -82,7 +82,7 @@ public static IEnumerator ExtractZip(string zipPath, string extractPath, string
8282
}
8383
catch (Exception e)
8484
{
85-
Data.Logger.Info($"An exception occured while trying to move files into their final directory! {e.ToString()}");
85+
Data.Logger.Debug($"An exception occured while trying to move files into their final directory! {e.ToString()}");
8686
Data.Logger.Error(e);
8787
}
8888
}

BeatSaberOnline/Utils/SongDownloader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ private set
4343
public IEnumerator DownloadSong(string levelId, Action<string> songDownloaded)
4444
{
4545
levelId = levelId.Substring(0, 32);
46-
46+
Data.Logger.Info($"Starting download for {levelId}");
4747
using (UnityWebRequest www = UnityWebRequest.Get($"https://beatsaver.com/api/songs/search/hash/{levelId}"))
4848
{
4949
yield return www.SendWebRequest();

BeatSaberOnline/Utils/SongListUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static void StartSong(LevelSO level, byte difficulty, GameplayModifiers g
5858
_gameplayModifiers = gameplayModifiers;
5959
_difficultyBeatmap = level.GetDifficultyBeatmap((BeatmapDifficulty)difficulty);
6060

61-
Data.Logger.Info($"Starting song: name={level.songName}, levelId={level.levelID}, difficulty={_difficultyBeatmap.difficulty}");
61+
Data.Logger.Debug($"Starting song: name={level.songName}, levelId={level.levelID}, difficulty={_difficultyBeatmap.difficulty}");
6262
InSong = true;
6363
menuSceneSetupData.StartStandardLevel(_difficultyBeatmap, gameplayModifiers, playerSettings, null, null, new Action<StandardLevelSceneSetupDataSO, LevelCompletionResults>(FinishSong));
6464
}

BeatSaberOnline/Views/ViewControllers/MockPartyViewController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ private void toggleButtons(bool val)
108108
private void didSelectPlay()
109109
{try
110110
{
111-
Logger.Info("Clicked play button");
112111
var practice = ReflectionUtil.GetPrivateField<Button>(detail, "_practiceButton");
113112
Logger.Debug("Custom play button selected");
114113
if (!_partyFlowCoordinator || !_partyFlowCoordinator.isActivated)

0 commit comments

Comments
 (0)