diff options
| author | Paul Buetow <paul@buetow.org> | 2021-10-11 17:42:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-12 22:35:56 +0300 |
| commit | a6098084f7150df34edecf1519386bd28a527361 (patch) | |
| tree | 8c81477d0b6ef1f5934f012eb5bd05462bbb7c16 /internal/config/common.go | |
| parent | c0f4ebc9b3773c37e22c686024c8cc7ce4e71f9f (diff) | |
Update JSON-schema to reflect all recent config file changes.
Diffstat (limited to 'internal/config/common.go')
| -rw-r--r-- | internal/config/common.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/internal/config/common.go b/internal/config/common.go index 9d22c95..7a72cfe 100644 --- a/internal/config/common.go +++ b/internal/config/common.go @@ -12,12 +12,10 @@ type CommonConfig struct { Logger string // LogLevel defines how much is logged. LogLevel string `json:",omitempty"` - // LogStrategy defines the log rotation strategy. - LogStrategy string + // LogRotation strategy to be used. + LogRotation string // The cache directory CacheDir string - // The temp directory - TmpDir string `json:",omitempty"` } // Create a new default configuration. @@ -28,8 +26,7 @@ func newDefaultCommonConfig() *CommonConfig { LogDir: "log", Logger: "stdout", LogLevel: DefaultLogLevel, - LogStrategy: "daily", + LogRotation: "daily", CacheDir: "cache", - TmpDir: "/tmp", } } |
