diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-08-11 21:25:43 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-08-11 21:25:43 -0500 |
| commit | 38196d20c913f4ec7e805b4455238faa695f8d19 (patch) | |
| tree | 42bc7d012d3abc984ecaa5034ace1156f8264cb9 /src/slskd/Core | |
| parent | e617b9bdf8d18633ec1e627b988793df161fa820 (diff) | |
| download | slskd-38196d20c913f4ec7e805b4455238faa695f8d19.tar.gz | |
add LogSQL option
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Options.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index f2e89aeb..a1db929a 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -294,6 +294,15 @@ namespace slskd [Description("do not check for newer version at startup")] [RequiresRestart] public bool NoVersionCheck { get; init; } = false; + + /// <summary> + /// Gets a value indicating whether Entity Framework queries should be logged. + /// </summary> + [Argument(default, "log-sql")] + [EnvironmentVariable("LOG_SQL")] + [Description("log SQL queries generated by Entity Framework")] + [RequiresRestart] + public bool LogSQL { get; init; } = false; } /// <summary> |
