Skip to content

Commit

Permalink
chore: log an error when we get something in stderr during writeback
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Sep 11, 2024
1 parent 42789e2 commit d034d3f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions apps/api/src/python/writeback/bigquery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ export async function writebackBigQuery(
executedAt,
step: 'unknown',
}
console.log(`${output.ename}: ${output.evalue}`)
console.log(output.traceback.join('\n'))

logger.error(
{
workspaceId,
Expand All @@ -93,6 +90,18 @@ export async function writebackBigQuery(
executedAt,
step: 'unknown',
}
logger.error(
{
workspaceId,
sessionId,
dataframeName,
tableName,
overwriteTable,
onConflict,
error: output.text,
},
`Python stderr during writeback`
)
break
case 'stdout':
const parsed = jsonString
Expand Down

0 comments on commit d034d3f

Please sign in to comment.