summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/defaults.go1
-rw-r--r--internal/config/keys.go6
-rw-r--r--internal/config/values.go1
3 files changed, 6 insertions, 2 deletions
diff --git a/internal/config/defaults.go b/internal/config/defaults.go
index e400f6599..847f10c81 100644
--- a/internal/config/defaults.go
+++ b/internal/config/defaults.go
@@ -24,6 +24,7 @@ import "github.com/coreos/go-oidc/v3/oidc"
// Note that if you use this, you still need to set Host and, if desired, ConfigPath.
var Defaults = Values{
LogLevel: "info",
+ LogDbQueries: false,
ApplicationName: "gotosocial",
ConfigPath: "",
Host: "",
diff --git a/internal/config/keys.go b/internal/config/keys.go
index 9b79bccc7..50a9c2fa7 100644
--- a/internal/config/keys.go
+++ b/internal/config/keys.go
@@ -21,8 +21,9 @@ package config
// KeyNames is a struct that just contains the names of configuration keys.
type KeyNames struct {
// root
- LogLevel string
- ConfigPath string
+ LogLevel string
+ LogDbQueries string
+ ConfigPath string
// general
ApplicationName string
@@ -109,6 +110,7 @@ type KeyNames struct {
// and retrieving values from the viper config store.
var Keys = KeyNames{
LogLevel: "log-level",
+ LogDbQueries: "log-db-queries",
ApplicationName: "application-name",
ConfigPath: "config-path",
Host: "host",
diff --git a/internal/config/values.go b/internal/config/values.go
index ebee4e4b7..1c71e4e30 100644
--- a/internal/config/values.go
+++ b/internal/config/values.go
@@ -21,6 +21,7 @@ package config
// Values contains contains the type of each configuration value.
type Values struct {
LogLevel string
+ LogDbQueries bool
ApplicationName string
ConfigPath string
Host string