Skip to content

Commit

Permalink
fix: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joschkabraun committed Feb 1, 2024
1 parent 9b968df commit ae345a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/utils/wrap_openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ function wrapMethod(method: Function, idxArgs: number = 0, io: any) {
status: status,
});
if (io) {
await io.logger.info(`'traceLog in finally: ${traceLog}`);
await io.logger.info(`'traceLog in finally: ${JSON.stringify(traceLog)}`);
await io.logger.info(`pareaLogger in finally: ${pareaLogger}`);
}
await pareaLogger.recordLog(traceLog);
const response = await pareaLogger.recordLog(traceLog);
if (io) {
await io.logger.info(`response in finally: ${response}`);
await io.logger.info(`response in finally: ${JSON.stringify(response)}`);
}
}

if (error) {
Expand Down

0 comments on commit ae345a0

Please sign in to comment.