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 20:22:41 -0400
commit6bb6e0ff849e09fa39281adf6001599c0a73f979 (patch)
tree82d56345543bbd0c8f184fcdaa6b0b4733eae828
parent96d090f908b82123ffe99dca82770b5cde2fc347 (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 9978e9781..ec10fdaf6 100644
--- a/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
+++ b/MediaBrowser.Server.Implementations/Persistence/SqliteItemRepository.cs
@@ -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),