GSIServer log messagecontent before invoking event

This commit is contained in:
glax 2024-01-15 23:33:14 +01:00
parent 1d5df8a095
commit 4b66a7147a

View File

@ -44,8 +44,8 @@ internal class GSIServer
StreamReader reader = new (request.InputStream, request.ContentEncoding);
string content = await reader.ReadToEndAsync();
OnMessage?.Invoke(content);
this.logger?.Log(LogLevel.Debug, content);
OnMessage?.Invoke(content);
}
HttpListener.Close();
IsRunning = false;