Skip to content

Commit 6a0c54f

Browse files
committed
update log level
1 parent b7d5b73 commit 6a0c54f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/core/src/shared/utilities/resourceCache.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export abstract class CachedResource<V> {
8585
)
8686
}
8787
} else {
88-
logger.debug(`cache miss, pulling latest resource %s`, this.key)
88+
logger.info(`cache miss, pulling latest resource %s`, this.key)
8989
}
9090

9191
/**
@@ -104,14 +104,11 @@ export abstract class CachedResource<V> {
104104
timestamp: now(),
105105
result: latest,
106106
}
107-
logger.debug(`doen loading latest resource, updating resource cache: %s`, this.key)
107+
logger.info(`doen loading latest resource, updating resource cache: %s`, this.key)
108108
await this.releaseLock(r)
109109
return latest
110110
} catch (e) {
111-
logger.debug(
112-
`encountered unexpected error while loading the latest of resource(%s), releasing resource lock`,
113-
this.key
114-
)
111+
logger.error(`failed to load latest resource, releasing lock: %s`, this.key)
115112
await this.releaseLock()
116113
throw e
117114
}

0 commit comments

Comments
 (0)