Skip to content

Commit

Permalink
修复日志
Browse files Browse the repository at this point in the history
  • Loading branch information
xljiulang committed Jan 18, 2022
1 parent 3ae6920 commit 189ed2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion FastGithub.UI/UdpLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ private static int GetAvailableUdpPort(int minValue, AddressFamily addressFamily
var length = await taskCompletionSource.Task;

var json = Encoding.UTF8.GetString(buffer, 0, length);
return JsonConvert.DeserializeObject<UdpLog>(json);
var log= JsonConvert.DeserializeObject<UdpLog>(json);
if (log != null)
{
log.Message = log.Message.Replace("\"", null);
}
return log;
}

private static void EndReceiveFrom(IAsyncResult ar)
Expand Down

0 comments on commit 189ed2d

Please sign in to comment.