diff --git a/changelog/29917.txt b/changelog/29917.txt new file mode 100644 index 0000000000..fd51133280 --- /dev/null +++ b/changelog/29917.txt @@ -0,0 +1,3 @@ +```release-note:bug +core: Fix a bug that prevents certain loggers from writing to a log file. +``` diff --git a/command/server.go b/command/server.go index 20abe21554..581306afb3 100644 --- a/command/server.go +++ b/command/server.go @@ -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) {