mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
🖥️ 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:
parent
ef86b25dae
commit
b2ef75e009
4 changed files with 13 additions and 5 deletions
|
|
@ -49,8 +49,10 @@ const spendTokens = async (txData, tokenUsage) => {
|
|||
prompt &&
|
||||
completion &&
|
||||
logger.debug('[spendTokens] Transaction data record against balance:', {
|
||||
prompt,
|
||||
completion,
|
||||
user: prompt.user,
|
||||
prompt: prompt.prompt,
|
||||
completion: completion.completion,
|
||||
balance: completion.balance,
|
||||
});
|
||||
} catch (err) {
|
||||
logger.error('[spendTokens]', err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue