Skip to content

Commit eef9dec

Browse files
committed
Avoid duplicate slow query logs (#1789)
1 parent bb07b20 commit eef9dec

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/CodeIndex/Database/DbDebug.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ internal static SqliteDataReader ExecuteReader(SqliteCommand cmd)
200200
var unprofiledReader = cmd.ExecuteReader();
201201
executeStopwatch.Stop();
202202
activity?.SetTag("db.elapsed_ms", executeStopwatch.Elapsed.TotalMilliseconds);
203-
if (threshold.HasValue && executeStopwatch.Elapsed.TotalMilliseconds >= threshold.Value)
204-
WriteSlowQueryToStderr(cmd, executeStopwatch.Elapsed.TotalMilliseconds, rowsRead: null);
205203
if (threshold.HasValue)
206204
{
207205
var slowEntry = new QueryProfileEntry(cmd.CommandText ?? string.Empty, []);

0 commit comments

Comments
 (0)