🖥️ feat: Match STDOUT Logs with Debug File Logs (#1944)

* chore: improve token balance logging post-request

* feat: match stdout logging with file debug logging when using DEBUG_CONSOLE
This commit is contained in:
Danny Avila 2024-03-01 13:42:04 -05:00 committed by GitHub
parent ef86b25dae
commit b2ef75e009
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 5 deletions

View file

@ -84,7 +84,7 @@ const connect = require('./connect');
}
// Check the result
if (!result?.tokenCredits) {
if (!result?.balance) {
console.red('Error: Something went wrong while updating the balance!');
console.error(result);
silentExit(1);