update logging

This commit is contained in:
Luke Pulverenti 2016-05-24 20:22:41 -04:00
parent 96d090f908
commit 6bb6e0ff84
1 changed files with 7 additions and 1 deletions

View File

@ -1670,7 +1670,13 @@ namespace MediaBrowser.Server.Implementations.Persistence
{
var elapsed = (DateTime.UtcNow - startDate).TotalMilliseconds;
if (elapsed >= 400)
var slowThreshold = 1000;
#if DEBUG
slowThreshold = 200;
#endif
if (elapsed >= slowThreshold)
{
Logger.Debug("{2} query time (slow): {0}ms. Query: {1}",
Convert.ToInt32(elapsed),