mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
3
.changelog/13076.txt
Normal file
3
.changelog/13076.txt
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user