We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9006f29 commit a27ba42Copy full SHA for a27ba42
1 file changed
lib/src/outputs/advanced_file_output.dart
@@ -221,9 +221,11 @@ class AdvancedFileOutput extends LogOutput {
221
_sink?.writeln(fileFooter);
222
}
223
224
- await _sink?.flush();
225
- await _sink?.close();
226
- _sink = null; // Explicitly set null until assigned again
+ final sink = _sink;
+ _sink = null; // disable writing in flushBuffer
+
227
+ await sink?.flush();
228
+ await sink?.close();
229
230
231
Future<void> _deleteRotatedFiles() async {
0 commit comments