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:
Hamid Ghaf
2023-12-11 08:08:48 -08:00
committed by GitHub
parent 28ce9c5a4c
commit 57b6b74283
6 changed files with 28 additions and 0 deletions

View File

@@ -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