mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
embed: set log-outputs 'default' to 'stderr' config when zap mode
This commit is contained in:
parent
1124ccf4f9
commit
6744c57de3
@ -339,6 +339,7 @@ The security flags help to [build a secure etcd cluster][security].
|
||||
+ Specify 'stdout' or 'stderr' to skip journald logging even when running under systemd, or list of comma separated output targets.
|
||||
+ default: default
|
||||
+ env variable: ETCD_LOG_OUTPUTS
|
||||
+ 'default' use 'stderr' config for v3.4 during zap logger migraion
|
||||
|
||||
### --debug
|
||||
+ Drop the default log level to DEBUG for all subpackages.
|
||||
|
@ -152,7 +152,8 @@ func (cfg *Config) setupLogging() error {
|
||||
for _, v := range cfg.LogOutputs {
|
||||
switch v {
|
||||
case DefaultLogOutput:
|
||||
return errors.New("'--log-outputs=default' is not supported for v3.4 during zap logger migraion (use 'journal', 'stderr', 'stdout', etc.)")
|
||||
outputPaths[StdErrLogOutput] = struct{}{}
|
||||
errOutputPaths[StdErrLogOutput] = struct{}{}
|
||||
|
||||
case JournalLogOutput:
|
||||
isJournal = true
|
||||
|
Loading…
x
Reference in New Issue
Block a user