Skip to content

Commit

Permalink
fix lock synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
Janelle Law committed Nov 6, 2023
1 parent 4fe0cc6 commit 79f58fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logger/plugin_logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func InitPluginWriter(agentId string) io.Writer {
writer := f.(io.Writer)
PluginFileWriter.file = &fileWriter{
file: writer,
mu: &sync.Mutex{},
mu: PluginFileWriter.mu,
}
PluginFileWriter.logForwarder = New(WithWriter(pluginOutputWriter), WithDisableCaller())
return PluginFileWriter.file
Expand Down

0 comments on commit 79f58fb

Please sign in to comment.