add hide token config.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2016-05-16 21:04:05 +08:00
parent 537605a86c
commit af63356e56
4 changed files with 17 additions and 5 deletions

View File

@@ -57,6 +57,7 @@ type SectionLog struct {
AccessLevel string `yaml:"access_level"`
ErrorLog string `yaml:"error_log"`
ErrorLevel string `yaml:"error_level"`
HideToken bool `yaml:"hide_token"`
}
// SectionStat is sub seciont of config.
@@ -115,6 +116,7 @@ func BuildDefaultPushConf() ConfYaml {
conf.Log.AccessLevel = "debug"
conf.Log.ErrorLog = "stderr"
conf.Log.ErrorLevel = "error"
conf.Log.HideToken = true
conf.Stat.Engine = "memory"
conf.Stat.Redis.Addr = "localhost:6379"

View File

@@ -30,6 +30,7 @@ log:
access_level: "debug"
error_log: "stderr"
error_level: "error"
hide_token: true
stat:
engine: "memory"