diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gotosocial/flag/global.go | 1 | ||||
-rw-r--r-- | cmd/gotosocial/flag/usage.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cmd/gotosocial/flag/global.go b/cmd/gotosocial/flag/global.go index 55ead7e29..173180024 100644 --- a/cmd/gotosocial/flag/global.go +++ b/cmd/gotosocial/flag/global.go @@ -31,6 +31,7 @@ func Global(cmd *cobra.Command, values config.Values) { cmd.PersistentFlags().String(config.Keys.AccountDomain, values.AccountDomain, usage.AccountDomain) cmd.PersistentFlags().String(config.Keys.Protocol, values.Protocol, usage.Protocol) cmd.PersistentFlags().String(config.Keys.LogLevel, values.LogLevel, usage.LogLevel) + cmd.PersistentFlags().Bool(config.Keys.LogDbQueries, values.LogDbQueries, usage.LogDbQueries) cmd.PersistentFlags().String(config.Keys.ConfigPath, values.ConfigPath, usage.ConfigPath) // database stuff diff --git a/cmd/gotosocial/flag/usage.go b/cmd/gotosocial/flag/usage.go index d7e7fb417..63c3eac5d 100644 --- a/cmd/gotosocial/flag/usage.go +++ b/cmd/gotosocial/flag/usage.go @@ -22,6 +22,7 @@ import "github.com/superseriousbusiness/gotosocial/internal/config" var usage = config.KeyNames{ LogLevel: "Log level to run at: [trace, debug, info, warn, fatal]", + LogDbQueries: "Log database queries verbosely when log-level is trace or debug", ApplicationName: "Name of the application, used in various places internally", ConfigPath: "Path to a file containing gotosocial configuration. Values set in this file will be overwritten by values set as env vars or arguments", Host: "Hostname to use for the server (eg., example.org, gotosocial.whatever.com). DO NOT change this on a server that's already run!", |