Skip to content

Commit

Permalink
More debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Dec 1, 2023
1 parent 141f3b9 commit 39daa86
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ abstract class AbstractInstallStrategy : ComponentMetadataRule {
logger.info {
"$sentryModuleId was successfully installed with version: $sentryVersion"
}
logger.info("$sentryModuleId was installed because of this culprit:", autoInstallState.throwable)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ fun Project.installDependencies(extension: SentryPluginExtension, isAndroid: Boo
extension
)
this.enabled = true
this.throwable = Throwable()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class AutoInstallState private constructor() {
@set:Synchronized
var enabled: Boolean = false

@get:Synchronized
@set:Synchronized
var throwable: Throwable? = null

override fun toString(): String {
return "AutoInstallState(sentryVersion='$sentryVersion', enabled=$enabled)"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class SentryPluginConfigurationCacheTest :
)
runner.appendArguments(":app:assembleDebug")
.appendArguments("--configuration-cache")
.appendArguments("--info")

val output = runner.build().output
val deps = verifyDependenciesReportAndroid(testProjectDir.root)
Expand Down

0 comments on commit 39daa86

Please sign in to comment.