Skip to content

Commit e9d7491

Browse files
committed
fix: 修正慢命令日誌攔截器的日誌格式
1 parent 616d32a commit e9d7491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private void LogSlowCommand(string commandText, TimeSpan duration)
6161
{
6262
if (duration.TotalMilliseconds > _slowCommandLoggingThreshold)
6363
{
64-
_logger.LogWarning("Detected slow SQL command: ({Duration})\n{CommandText} ()", duration, commandText);
64+
_logger.LogWarning("Detected slow SQL command: ({Duration})\n{CommandText}", duration, commandText);
6565
}
6666
}
6767
}

0 commit comments

Comments
 (0)