aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/Logging/NLogger.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-17 12:48:23 -0400
committerGitHub <noreply@github.com>2016-10-17 12:48:23 -0400
commit0fd99d2d08515341fbcd31daa011090bb073cfcd (patch)
treeca299bed13c4a241482c5518ea0bc76f58b5326d /MediaBrowser.Common.Implementations/Logging/NLogger.cs
parentb0147c32f9122c6ce695d2919176ed8b50b94fda (diff)
parentb0a75f086e9d48b840ff1594997f68282920f491 (diff)
Merge pull request #2242 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Common.Implementations/Logging/NLogger.cs')
-rw-r--r--MediaBrowser.Common.Implementations/Logging/NLogger.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Common.Implementations/Logging/NLogger.cs b/MediaBrowser.Common.Implementations/Logging/NLogger.cs
index 97bc437a0..11f41261a 100644
--- a/MediaBrowser.Common.Implementations/Logging/NLogger.cs
+++ b/MediaBrowser.Common.Implementations/Logging/NLogger.cs
@@ -127,7 +127,9 @@ namespace MediaBrowser.Common.Implementations.Logging
{
for (var i = 0; i < paramList.Length; i++)
{
- message = message.Replace("{" + i + "}", paramList[i].ToString());
+ var obj = paramList[i];
+
+ message = message.Replace("{" + i + "}", (obj == null ? "null" : obj.ToString()));
}
}