feat: don't log circular structs

This commit is contained in:
zkldi
2024-05-19 16:30:28 +01:00
parent 254bc071d0
commit 5d4e18e32e
@@ -54,7 +54,10 @@ export async function StartTrackingImport(jobData: ScoreImportJobData<ImportType
`Failed to save score-import-input for import '${
jobData.importID
}' at path '${GetScoreImportInputURL(jobData.importID)}'.`,
{ reason: err }
// $response is a circular struct and we really don't like logging
// cicular structs. gf.
{ reason: { ...err.$error, $response: undefined } }
);
}
);