Skip to content

Commit 616d32a

Browse files
committed
fix: 修正慢連接日誌攔截器的日誌參數順序
1 parent 8382020 commit 616d32a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Netcorext.EntityFramework.UserIdentityPattern/Interceptors/SlowConnectionLoggingInterceptor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private void LogSlowConnection(string dataSource, string database, TimeSpan dura
3131
{
3232
if (duration.TotalMilliseconds > _slowConnectionLoggingThreshold)
3333
{
34-
_logger.LogWarning("Detected slow database connection: DataSource={dataSource}, Database={database} ({Duration})", duration, dataSource, database);
34+
_logger.LogWarning("Detected slow database connection: DataSource={dataSource}, Database={database} ({Duration})", dataSource, database, duration);
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)