mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 03:36:22 -07:00
Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors
This commit is contained in:
parent
138b41bf0a
commit
8e9543970a
9 changed files with 43 additions and 26 deletions
|
@ -164,7 +164,7 @@ type SystemCriticalConfig struct {
|
|||
DBpassword string
|
||||
DBprefix string
|
||||
|
||||
DebugMode bool
|
||||
Verbose bool `json:"DebugMode"`
|
||||
RandomSeed string
|
||||
Version *GochanVersion `json:"-"`
|
||||
TimeZone int `json:"-"`
|
||||
|
@ -185,7 +185,6 @@ type SiteConfig struct {
|
|||
|
||||
MaxRecentPosts int
|
||||
RecentPostsWithNoFile bool
|
||||
Verbosity int
|
||||
EnableAppeals bool
|
||||
MaxLogDays int
|
||||
|
||||
|
@ -374,8 +373,12 @@ func DeleteBoardConfig(dir string) {
|
|||
delete(boardConfigs, dir)
|
||||
}
|
||||
|
||||
func GetDebugMode() bool {
|
||||
return cfg.testing || cfg.SystemCriticalConfig.DebugMode
|
||||
func VerboseMode() bool {
|
||||
return cfg.testing || cfg.SystemCriticalConfig.Verbose
|
||||
}
|
||||
|
||||
func SetVerbose(verbose bool) {
|
||||
cfg.Verbose = verbose
|
||||
}
|
||||
|
||||
func GetVersion() *GochanVersion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue