Skip to content

Commit a0fa8b6

Browse files
committed
fix: sync debug logger not injected
1 parent ce62d6b commit a0fa8b6

File tree

1 file changed

+7
-1
lines changed
  • app-common/src/main/kotlin/net/thunderbird/app/common/core/logging

1 file changed

+7
-1
lines changed

app-common/src/main/kotlin/net/thunderbird/app/common/core/logging/LoggerModule.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ val appCommonCoreLogger = module {
4545
)
4646
}
4747

48+
// Setup for sync debug logger
49+
// Define this list lazily to avoid eager initialization at app startup
50+
single<List<LogSink>>(qualifier = named(SYNC_DEBUG_LOG), createdAtStart = false) {
51+
listOf(get<FileLogSink>(named(SYNC_DEBUG_LOG)))
52+
}
53+
4854
single<CompositeLogSink>(named(SYNC_DEBUG_LOG)) {
4955
CompositeLogSink(
5056
logLevelProvider = get(),
51-
sinks = getList(),
57+
sinks = get<List<LogSink>>(named(SYNC_DEBUG_LOG)),
5258
)
5359
}
5460

0 commit comments

Comments
 (0)