aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Logging/NLogger.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-06 14:55:55 -0400
committerGitHub <noreply@github.com>2016-10-06 14:55:55 -0400
commitce9574f562f67adf485debe324881b1cf3dd8ee8 (patch)
tree05ea4b3875453b76cd4c7ba7e0079481a5e225db /MediaBrowser.Common.Implementations/Logging/NLogger.cs
parentd588620d3a4abcbe785f50380be749ff6d825a3a (diff)
parenta69ca6c55bb7183d247c2c3b25203dbed99fd5d9 (diff)
Merge pull request #2211 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Common.Implementations/Logging/NLogger.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Logging/NLogger.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/Logging/NLogger.cs b/MediaBrowser.Common.Implementations/Logging/NLogger.cs
index 29b618890..97bc437a0 100644
--- a/MediaBrowser.Common.Implementations/Logging/NLogger.cs
+++ b/MediaBrowser.Common.Implementations/Logging/NLogger.cs
@@ -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';