mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-18 18:38:08 -05:00
Ensure logger writes to log_file by preventing overwrite of InterceptLogger's output (#29917)
* Ensure logger writes to log_file by preventing overwrite of InterceptLogger's output * add changelog
This commit is contained in:
parent
c4dc26ba7d
commit
c56db5a575
2 changed files with 4 additions and 3 deletions
3
changelog/29917.txt
Normal file
3
changelog/29917.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core: Fix a bug that prevents certain loggers from writing to a log file.
|
||||
```
|
||||
|
|
@ -420,9 +420,7 @@ func (c *ServerCommand) AutocompleteFlags() complete.Flags {
|
|||
}
|
||||
|
||||
func (c *ServerCommand) flushLog() {
|
||||
c.logger.(hclog.OutputResettable).ResetOutputWithFlush(&hclog.LoggerOptions{
|
||||
Output: c.logWriter,
|
||||
}, c.logGate)
|
||||
c.logGate.Flush()
|
||||
}
|
||||
|
||||
func (c *ServerCommand) parseConfig() (*server.Config, []configutil.ConfigError, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue