Skip to content

Commit 1ed5f6a

Browse files
committed
Swift: flush log files on log flushing
1 parent f9a52f8 commit 1ed5f6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

swift/extractor/infra/log/SwiftLogging.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ void Log::configure() {
134134

135135
void Log::flushImpl() {
136136
session.consume(*this);
137+
if (text) {
138+
textFile.flush();
139+
}
140+
if (binary) {
141+
binary.output.flush();
142+
}
137143
}
138144

139145
Log::LoggerConfiguration Log::getLoggerConfigurationImpl(std::string_view name) {

0 commit comments

Comments
 (0)