mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #11582 from overleaf/jpa-count-tokens-empty-result
[access-token-encryptor] nicer log message for zero access token found GitOrigin-RevId: 2a28fdc71a1e063f091f55bc247d9dd26bbd0ee3
This commit is contained in:
parent
ac83dd9bb3
commit
246d62b578
1 changed files with 8 additions and 1 deletions
|
@ -14,7 +14,14 @@ function formatTokenUsageStats(STATS) {
|
|||
.toFixed(2)
|
||||
.padStart(6)
|
||||
}
|
||||
|
||||
if (prettyStats.length === 0) {
|
||||
console.warn('---')
|
||||
console.warn('Found 0 access tokens.')
|
||||
console.warn('---')
|
||||
} else {
|
||||
console.table(prettyStats)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { formatTokenUsageStats }
|
||||
|
|
Loading…
Reference in a new issue