Don't buffer json logs on agent startup (#13076)
There's no reason to buffer json logs on agent startup since logs in this format already aren't reordered.
This commit is contained in:
parent
d9c10fccde
commit
d515e5c3b0
|
@ -0,0 +1,3 @@
|
|||
```release-note:improvement
|
||||
agent: logs are no longer buffered at startup when logging in JSON format
|
||||
```
|
|
@ -703,6 +703,8 @@ func (c *Command) Run(args []string) int {
|
|||
// Swap out UI implementation if json logging is enabled
|
||||
if config.LogJson {
|
||||
c.Ui = &logging.HcLogUI{Log: logger}
|
||||
// Don't buffer json logs because they aren't reordered anyway.
|
||||
logGate.Flush()
|
||||
}
|
||||
|
||||
// Log config files
|
||||
|
|
Loading…
Reference in New Issue