For some exception types (OperationTimeoutException, DeadlockException, ...), the exception message contains the complete SQL of the query that was being executed. While this can useful to debug, it can also reduce log readability. Is there an option to enabled/disable getting the sql in exception .ToString() output? If not, would it be possible to add this option? |