mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-25 11:13:39 +02:00
Downgraded to MiniProfiler 1.2
ConfigProvider now logs in Trace level rather than debug level
This commit is contained in:
parent
7d706a3304
commit
a9df506ef2
@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Ninject;
|
||||
using NLog;
|
||||
using NLog.Targets;
|
||||
using NLog.Targets.Wrappers;
|
||||
@ -11,6 +12,7 @@ namespace NzbDrone.Core.Instrumentation
|
||||
{
|
||||
private readonly IDatabase _database;
|
||||
|
||||
[Inject]
|
||||
public DatabaseTarget(IDatabase database)
|
||||
{
|
||||
_database = database;
|
||||
|
@ -283,7 +283,7 @@ namespace NzbDrone.Core.Providers.Core
|
||||
if (dbValue != null && !String.IsNullOrEmpty(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();
|
||||
|
||||
return value;
|
||||
@ -306,7 +306,7 @@ namespace NzbDrone.Core.Providers.Core
|
||||
if (value == null)
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user