| | | 1 | | namespace ArturRios.Heimdall.Data.Configuration; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Controls the EF Core diagnostics that expose data values in logs and exception messages. |
| | | 5 | | /// Both flags default to <c>false</c>, so an environment we fail to classify is treated as |
| | | 6 | | /// production and leaks nothing. |
| | | 7 | | /// </summary> |
| | | 8 | | public sealed class DbContextDiagnosticsOptions |
| | | 9 | | { |
| | | 10 | | /// <summary>Diagnostics fully disabled — the production-safe default.</summary> |
| | 1 | 11 | | public static readonly DbContextDiagnosticsOptions Disabled = new(); |
| | | 12 | | |
| | | 13 | | /// <summary>Whether query parameter values — password hashes, salts, e-mails — may be logged.</summary> |
| | 7294 | 14 | | public bool SensitiveDataLogging { get; init; } |
| | | 15 | | |
| | | 16 | | /// <summary>Whether column values may be included in EF exception messages.</summary> |
| | 7294 | 17 | | public bool DetailedErrors { get; init; } |
| | | 18 | | } |