You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_logger.LogDebug("Received expired key with emtpy value?? for hub offline status");
61
+
_logger.LogWarning("Received expired key with empty value for hub offline status");
62
+
return;
63
+
}
64
+
65
+
varmessageString=(string?)message;
66
+
if(messageStringisnull)
67
+
{
68
+
_logger.LogWarning("Received expired key that could not be converted to string for hub offline status. Raw value type: {ValueType}",message.GetType().FullName);
62
69
return;
63
70
}
64
71
65
-
// ToString here just casts the underlying object to a string
66
-
varmessageString=message.ToString();
67
72
varmessageSpan=messageString.AsSpan();
68
73
69
-
// We always expect TypeName:GUID right now, and this wont throw if there is more split results than expected
70
-
// We also dont need to check for its length after, since we pre-stackalloc
71
-
Span<Range>split=stackallocRange[2];
72
-
messageSpan.Split(split,':');
74
+
// We always expect TypeName:GUID right now, if GUID is not present, something is really wrong
75
+
varcolonPos=messageSpan.IndexOf(':');
76
+
if(colonPos<0)
77
+
{
78
+
_logger.LogError("Received expired key with unexpected format (missing colon) for hub offline status. Value: {MessageValue}",messageString);
0 commit comments