Skip to content

Commit 39cadba

Browse files
committed
thread-safe-in-daily-engagement
1 parent 4d697c6 commit 39cadba

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/engagement/EngagementScoreServiceStartup.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,19 @@ class EngagementScoreServiceStartup : ProjectActivity {
7070
return
7171
}
7272

73+
Log.log(logger::trace, "fixing file {} with new lines", file)
74+
if (logger.isTraceEnabled) {
75+
linesToSave.forEach {
76+
Log.log(logger::trace, "new line {}", it)
77+
}
78+
}
79+
7380
val modifiedContent = linesToSave.joinToString(System.lineSeparator())
81+
82+
if (logger.isTraceEnabled) {
83+
Log.log(logger::trace, "saving new content to file {}", modifiedContent)
84+
}
85+
7486
file.writeText(modifiedContent)
7587
}
7688

0 commit comments

Comments
 (0)