Skip to content

Commit

Permalink
Merge pull request #2055 from InsertKoinIO/compose_context_warning
Browse files Browse the repository at this point in the history
lower compose warnings
  • Loading branch information
arnaudgiuliani authored Nov 15, 2024
2 parents 4247d8f + 8396208 commit 40e6967
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fun currentKoinScope(): Scope = currentComposer.run {
}
} catch (e: ClosedScopeException) {
getDefaultKoinContext().let {
it.logger.warn("Try to refresh scope - fallback on default context from - $e")
it.logger.debug("Try to refresh scope - fallback on default context from - $e")
it.scopeRegistry.rootScope
}
}
Expand All @@ -102,7 +102,7 @@ fun currentKoinScope(): Scope = currentComposer.run {

@OptIn(KoinInternalApi::class)
private fun warningNoContext(ctx: Koin) {
ctx.logger.error("[Warning] - No Compose Koin context setup, taking default. Use KoinContext(), KoinAndroidContext() or KoinApplication() function to setup or create Koin context and avoid such message.")
ctx.logger.info("No Compose Koin context setup, taking default. Use KoinContext(), KoinAndroidContext() or KoinApplication() function to setup or create Koin context and avoid such message.")
}

/**
Expand Down

0 comments on commit 40e6967

Please sign in to comment.