Skip to content

Commit

Permalink
fix: 🔧 update trace logging to use warn and error
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 23, 2024
1 parent 28e9232 commit 5ebed37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/runpromptcontext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ export function createChatTurnGenerationContext(
warn: (...args: any[]) => {
const line = consoleLogFormat(...args)
if (line) {
trace.log(line)
trace.warn(line)
logWarn(line)
}
},
error: (...args: any[]) => {
const line = consoleLogFormat(...args)
if (line) {
trace.log(line)
trace.error(line)
logError(line)
}
},
Expand Down

0 comments on commit 5ebed37

Please sign in to comment.