Skip to content

Commit

Permalink
Fix name detection in log watcher & update filter list
Browse files Browse the repository at this point in the history
- Fix name detection on log watcher since VRC obfuscated the names of behaviours
- Update log filter to catch more things, importantly filters all [API] logs now and all [Behaviour] logs which is VRC's catch-all for obfuscated logs
  • Loading branch information
MerlinVR committed Mar 24, 2021
1 parent 8fc4c93 commit ab14976
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Assets/UdonSharp/Editor/UdonSharpRuntimeLogWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ static void OnEditorUpdate()
{
string fullFileContents = reader.ReadToEnd();

const string SEARCH_STR = "[VRCFlowManagerVRC] User Authenticated: ";
const string SEARCH_STR = "[Behaviour] User Authenticated: ";
int userIdx = fullFileContents.IndexOf(SEARCH_STR);
if (userIdx != -1)
{
Expand Down Expand Up @@ -347,17 +347,17 @@ static void OnEditorUpdate()
"Received Message of type: friend-offline received at",
"Received Message of type: friend-location received at",
"[VRCFlowNetworkManager] Sending token from provider vrchat",
"[USpeaker] uSpeak [",
"[Always] uSpeak:",
"Internal: JobTempAlloc has allocations",
"To Debug, enable the define: TLA_DEBUG_STACK_LEAK in ThreadsafeLinearAllocator.cpp.",
"PLAYLIST GET id=",
"Checking server time received at ",
"[RoomManager] Room metadata is unchanged, skipping update",
"[API] Requesting Get favorites {{\"",
"[API] Requesting Get auth/user/moderations {",
"[API] Fetching user",
"[API] Requesting Get worlds/local",
"[API] Piggy-backing Get request to",
"Setting Custom Properties for Local Player: avatarEyeHeight",
"HTTPFormUseage:UrlEncoded",
// Big catch-alls for random irrelevant VRC stuff
"[API] ",
"[Behaviour] ",
};

static void HandleForwardedLog(string logMessage, LogFileState state, UdonSharpSettings settings)
Expand Down

0 comments on commit ab14976

Please sign in to comment.