mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
update logging
This commit is contained in:
parent
96d090f908
commit
6bb6e0ff84
@ -1670,7 +1670,13 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||||||
{
|
{
|
||||||
var elapsed = (DateTime.UtcNow - startDate).TotalMilliseconds;
|
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}",
|
Logger.Debug("{2} query time (slow): {0}ms. Query: {1}",
|
||||||
Convert.ToInt32(elapsed),
|
Convert.ToInt32(elapsed),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user