From c897bd3ed82dab8b72630516876845a1dd5a22a3 Mon Sep 17 00:00:00 2001 From: Jimmy McDermott Date: Wed, 23 Jan 2019 20:10:39 -0500 Subject: [PATCH] better error message --- Sources/Jobs/JobsCommand.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Jobs/JobsCommand.swift b/Sources/Jobs/JobsCommand.swift index 18135b8..f0120ce 100644 --- a/Sources/Jobs/JobsCommand.swift +++ b/Sources/Jobs/JobsCommand.swift @@ -123,7 +123,7 @@ public class JobsCommand: Command { return queueService.persistenceLayer.completed(key: key, jobString: jobString) } .catchFlatMap { error in - console.error("Job error: \(error)", newLine: true) + console.error("[\(jobData.id)] Error: \(error)", newLine: true) guard let jobString = job.stringValue(key: key, maxRetryCount: jobData.maxRetryCount, id: jobData.id) else { return eventLoop.future(error: Abort(.internalServerError))