[cmd] default Log.VerbosePrints.Config to true

fixes #3781
pull/3804/head
Peter Chung 3 years ago committed by Leo Chen
parent 073a7bcc61
commit 96d525a36f
  1. 2
      cmd/harmony/default.go
  2. 2
      cmd/harmony/flags.go
  3. 3
      cmd/harmony/flags_test.go

@ -72,7 +72,7 @@ var defaultConfig = harmonyconfig.HarmonyConfig{
RotateSize: 100,
Verbosity: 3,
VerbosePrints: harmonyconfig.LogVerbosePrints{
Config: false,
Config: true,
},
},
DNSSync: getDefaultDNSSyncConfig(defNetworkType),

@ -999,7 +999,7 @@ var (
logVerbosePrintsFlag = cli.StringSliceFlag{
Name: "log.verbose-prints",
Usage: "debugging feature. to print verbose internal objects as JSON in log file. available internal objects: config",
DefValue: []string{},
DefValue: []string{"config"},
}
// TODO: remove context (this shall not be in the log)
logContextIPFlag = cli.StringFlag{

@ -110,6 +110,9 @@ func TestHarmonyFlags(t *testing.T) {
IP: "8.8.8.8",
Port: 9000,
},
VerbosePrints: harmonyconfig.LogVerbosePrints{
Config: true,
},
},
Sys: &harmonyconfig.SysConfig{
NtpServer: defaultSysConfig.NtpServer,

Loading…
Cancel
Save