aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-24 20:22:41 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-05-24 22:12:58 -0400
commitf079557df606d1bb62404514c37f7c27f1c4bc39 (patch)
tree2be5955abf2dd2b34d9f9617fbd494199c4f1e1b
parentc0664988f587a0d667cfdcaa98673bce2db2a93d (diff)
update logging
-rw-r--r--MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
index 19932c96c..57eb41bc2 100644
--- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
+++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
@@ -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),