Skip to content

Commit

Permalink
feat(logs): use debug instead of info
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 20, 2023
1 parent 42ba29d commit 56eabc8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/server/app-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ export function VueFireAppCheckServer(

// FIXME: do we need to avoid creating the appcheck instance on the server?
if (AppCheckMap.has(firebaseApp)) {
logger.info('AppCheck already initialized, skipping server initialization.')
logger.debug(
'AppCheck already initialized, skipping server initialization.'
)
return
}

Expand All @@ -50,7 +52,7 @@ export function VueFireAppCheckServer(
getToken: () => {
// FIXME: without this there is an infinite loop
if (currentToken) {
logger.info('Using cached AppCheck token on server.')
logger.debug('Using cached AppCheck token on server.')
return Promise.resolve(currentToken)
}
logger.debug('Getting Admin AppCheck')
Expand All @@ -61,7 +63,7 @@ export function VueFireAppCheckServer(
return adminAppCheck
.createToken(firebaseApp.options.appId!, { ttlMillis })
.then(({ token, ttlMillis: expireTimeMillis }) => {
logger.info(
logger.debug(
`Got AppCheck token from the server, expires in ${expireTimeMillis}ms.`
)
// expire the token after the ttl
Expand Down

0 comments on commit 56eabc8

Please sign in to comment.