From f13c115a1e98e49271ef764d78cea942728715b1 Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Wed, 14 Jun 2023 21:26:45 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- legacy/src/task.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/legacy/src/task.ts b/legacy/src/task.ts index 9b7d1e28..7e434961 100644 --- a/legacy/src/task.ts +++ b/legacy/src/task.ts @@ -141,7 +141,10 @@ export abstract class BaseTask< ...this._retryConfig, onFailedAttempt: async (err: FailedAttemptError) => { this._logger.warn( - `Task "${this.nameForModel}" failed attempt ${err.attemptNumber}: ${err.message}` + err, + `Task error "${this.nameForHuman}" failed attempt ${ + err.attemptNumber + }: ${JSON.stringify(input)}` ) if (this._retryConfig.onFailedAttempt) {