Better logging for NzbDrone.Service

This commit is contained in:
kay.one 2012-02-15 22:16:57 -08:00
commit dde0432efc
8 changed files with 94 additions and 19 deletions

View file

@ -0,0 +1,20 @@
using System;
using System.Diagnostics;
namespace NzbDrone.Common
{
public static class StringExtention
{
public static object NullCheck(this object target)
{
if (target != null) return target;
return "[NULL]";
}
public static string NullCheck(this string target)
{
return ((object)target).NullCheck().ToString();
}
}
}