update logging

This commit is contained in:
Luke Pulverenti 2016-05-24 20:22:41 -04:00
parent c0664988f5
commit f079557df6

View File

@ -1707,7 +1707,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),