Skip to content

Commit 2b70fc9

Browse files
chore: enhance debug logging / add tests / release 1.0.5
1 parent 6d9ff93 commit 2b70fc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description=CodeArtifact settings plugin for Gradle
33
kotlin.code.style=official
44

55
group=io.cloudshiftdev.codeartifact
6-
version=1.0.4
6+
version=1.0.5
77

88
org.gradle.jvmargs=-Dfile.encoding\=UTF-8
99
org.gradle.vfs.watch=true

src/main/kotlin/io/cloudshiftdev/gradle/codeartifact/LocalCache.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ internal class LocalCache(private val cacheDir: File) {
4444
logger.debug("Reading cached CodeArtifact token with key {}", endpoint.cacheKey)
4545
val decryptedBytes = decrypt(cacheFile.readBytes(), endpoint.cacheKey)
4646
val token: CodeArtifactToken = mapper.readValue(decryptedBytes)
47+
logger.info("Retrieved CodeArtifact token from cache for key {}", endpoint.cacheKey)
4748
if (!token.expired) return token
4849
logger.info(
49-
"CodeArtifact token expired/stale. expiration: {}; now: {}; delta: {}",
50+
"CodeArtifact token expired/stale. expiration: {}; delta: {}",
5051
token.expiration,
51-
Instant.now(),
5252
Duration.between(Instant.now(), token.expiration),
5353
)
5454
} catch (thrown: Exception) {

0 commit comments

Comments
 (0)