Skip to content

Commit

Permalink
fix error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
paustint committed Dec 21, 2024
1 parent 7b8d074 commit 2682489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cron-tasks/src/geo-ip-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function importCSVToTable(csvPath: string, tableName: string, schema: stri

logger.info(`Successfully imported ${csvPath} to ${fullTableName}`);
} catch (error) {
logger.error(`Error importing ${csvPath}:`, error);
logger.error(getExceptionLog(error), `Error importing ${csvPath}: %s`, error.message);
// Cleanup temp table if it exists
await execAsync(`psql "${ENV.JETSTREAM_POSTGRES_DBURI}" -c "DROP TABLE IF EXISTS ${fullTempTableName}"`).catch(() => {
// Ignore errors
Expand Down

0 comments on commit 2682489

Please sign in to comment.