Skip to content

Commit

Permalink
fix: get rid of unwanted info logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkAtra committed Jun 12, 2023
1 parent 1d0d509 commit 60dfdf8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions activity/ServerBootstrapSystemPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public static void OnUserConnected(
NetConnectionId netConnectionId
) {

Plugin.Logger.LogInfo("OnUserConnected");

var userIndex = __instance._NetEndPointToApprovedUserIndex[netConnectionId];
var serverClient = __instance._ApprovedUsersLookup[userIndex];
var userEntity = serverClient.UserEntity;
Expand All @@ -43,7 +41,7 @@ NetConnectionId netConnectionId
return;
}

Plugin.Logger.LogInfo($"OnUserConnected: {vPlayer.VUser.User.CharacterName.ToString()}");
Plugin.Logger.LogDebug($"OnUserConnected: {vPlayer.VUser.User.CharacterName.ToString()}");

_playerActivities.Add(
new PlayerActivity(
Expand All @@ -65,8 +63,6 @@ public static void OnUserDisconnected(
string extraData
) {

Plugin.Logger.LogInfo("OnUserDisconnected");

var userIndex = __instance._NetEndPointToApprovedUserIndex[netConnectionId];
var serverClient = __instance._ApprovedUsersLookup[userIndex];
var userEntity = serverClient.UserEntity;
Expand All @@ -77,7 +73,7 @@ string extraData
return;
}

Plugin.Logger.LogInfo($"OnUserDisconnected: {vPlayer.VUser.User.CharacterName.ToString()}");
Plugin.Logger.LogDebug($"OnUserDisconnected: {vPlayer.VUser.User.CharacterName.ToString()}");

_playerActivities.Add(
new PlayerActivity(
Expand All @@ -100,11 +96,9 @@ public static void SpawnCharacter(
Nullable_Unboxed<float3> customSpawnPosition
) {

Plugin.Logger.LogInfo("SpawnCharacter");

var vPlayer = VPlayer.from(user);

Plugin.Logger.LogInfo($"SpawnCharacter: {vPlayer.VUser.User.CharacterName.ToString()}");
Plugin.Logger.LogDebug($"SpawnCharacter: {vPlayer.VUser.User.CharacterName.ToString()}");

_playerActivities.Add(
new PlayerActivity(
Expand Down

0 comments on commit 60dfdf8

Please sign in to comment.