mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
avoid buffering http responses
This commit is contained in:
@@ -72,6 +72,11 @@ namespace MediaBrowser.Common.Implementations.Logging
|
||||
/// <param name="paramList">The param list.</param>
|
||||
public void Debug(string message, params object[] paramList)
|
||||
{
|
||||
if (_logManager.LogSeverity == LogSeverity.Info)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_logger.Debug(message, paramList);
|
||||
}
|
||||
|
||||
@@ -137,6 +142,11 @@ namespace MediaBrowser.Common.Implementations.Logging
|
||||
/// <param name="additionalContent">Content of the additional.</param>
|
||||
public void LogMultiline(string message, LogSeverity severity, StringBuilder additionalContent)
|
||||
{
|
||||
if (severity == LogSeverity.Debug && _logManager.LogSeverity == LogSeverity.Info)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
additionalContent.Insert(0, message + Environment.NewLine);
|
||||
|
||||
const char tabChar = '\t';
|
||||
|
||||
Reference in New Issue
Block a user