mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 18:58:07 -06:00
[feature] Add log-db-queries config option (#465)
This commit is contained in:
parent
e74ec70dbf
commit
094f032f74
11 changed files with 43 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue