Revert "remove output to screen, limit file logging"
This reverts commit 26a238c285590a8f24a789698391725321bc6da2.
This commit is contained in:
@@ -156,6 +156,11 @@ public class SptHttpListener : IHttpListener
|
||||
{
|
||||
// Send only raw response without transformation
|
||||
SendJson(resp, output, sessionID);
|
||||
if (_logger.IsLogEnabled(LogLevel.Debug))
|
||||
{
|
||||
_logger.Debug($"Response: {output}");
|
||||
}
|
||||
|
||||
LogRequest(req, output);
|
||||
return;
|
||||
}
|
||||
@@ -194,7 +199,7 @@ public class SptHttpListener : IHttpListener
|
||||
{
|
||||
if (ProgramStatics.ENTRY_TYPE() != EntryType.RELEASE)
|
||||
{
|
||||
var log = new Response(req.Method, output.Substring(0, Math.Min(output.Length, 8000)));
|
||||
var log = new Response(req.Method, output);
|
||||
_requestLogger.Info($"RESPONSE={_jsonUtil.Serialize(log)}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user