Commit 956d4bb
fix(metricbeat): log messages before out channel is closed (#47659)
The wrapper signals completion to the caller via the output channel
but a log message is currently emitted after the channel has been closed.
We should move all log statements to occur before closing the channel,
ensuring no messages are logged post-closure.
Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>1 parent 82d8581 commit 956d4bb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | 183 | | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
0 commit comments