Downgraded to MiniProfiler 1.2

ConfigProvider now logs in Trace level rather than debug level
pull/4/head
kay.one 14 years ago
parent 7d706a3304
commit a9df506ef2

@ -1,4 +1,5 @@
using System; using System;
using Ninject;
using NLog; using NLog;
using NLog.Targets; using NLog.Targets;
using NLog.Targets.Wrappers; using NLog.Targets.Wrappers;
@ -11,6 +12,7 @@ namespace NzbDrone.Core.Instrumentation
{ {
private readonly IDatabase _database; private readonly IDatabase _database;
[Inject]
public DatabaseTarget(IDatabase database) public DatabaseTarget(IDatabase database)
{ {
_database = database; _database = database;

@ -283,7 +283,7 @@ namespace NzbDrone.Core.Providers.Core
if (dbValue != null && !String.IsNullOrEmpty(dbValue.Value)) if (dbValue != null && !String.IsNullOrEmpty(dbValue.Value))
return dbValue.Value; return dbValue.Value;
Logger.Debug("Unable to find config key '{0}' defaultValue:'{1}'", key, defaultValue); Logger.Trace("Unable to find config key '{0}' defaultValue:'{1}'", key, defaultValue);
value = defaultValue.ToString(); value = defaultValue.ToString();
return value; return value;
@ -306,7 +306,7 @@ namespace NzbDrone.Core.Providers.Core
if (value == null) if (value == null)
throw new ArgumentNullException("key"); throw new ArgumentNullException("key");
Logger.Debug("Writing Setting to file. Key:'{0}' Value:'{1}'", key, value); Logger.Trace("Writing Setting to file. Key:'{0}' Value:'{1}'", key, value);
var dbValue = _database.SingleOrDefault<Config>("WHERE [KEY]=@0", key); var dbValue = _database.SingleOrDefault<Config>("WHERE [KEY]=@0", key);

Loading…
Cancel
Save