The info-level message produced when a query exceeds the SlowSQLThreshold duration includes a full dump of the SQL request, including the parameters. This is unnecessarily verbose, and may leak confidential information into the logs. SQL query parameters should only be dumped when logging at Trace level; the log message should not include the payload when printing at lower levels.
The info-level message produced when a query exceeds the
SlowSQLThreshold
duration includes a full dump of the SQL request, including the parameters. This is unnecessarily verbose, and may leak confidential information into the logs. SQL query parameters should only be dumped when logging at Trace level; the log message should not include the payload when printing at lower levels.