mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
release log gate if disable-gated-logs flag is set (#24280)
* release log gate if disable-gated-logs flag is set * CL * Update changelog/24280.txt Co-authored-by: Josh Black <raskchanky@gmail.com> --------- Co-authored-by: Peter Wilson <peter.wilson@hashicorp.com> Co-authored-by: Josh Black <raskchanky@gmail.com>
This commit is contained in:
@@ -210,6 +210,11 @@ func (c *ProxyCommand) Run(args []string) int {
|
||||
}
|
||||
c.logger = l
|
||||
|
||||
// release log gate if the disable-gated-logs flag is set
|
||||
if c.logFlags.flagDisableGatedLogs {
|
||||
c.logGate.Flush()
|
||||
}
|
||||
|
||||
infoKeys := make([]string, 0, 10)
|
||||
info := make(map[string]string)
|
||||
info["log level"] = config.LogLevel
|
||||
|
||||
Reference in New Issue
Block a user