From 2df3213936d8b84d871445c8db5e1e2ccabe0959 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Sat, 26 Oct 2024 22:13:44 +0200 Subject: [PATCH] Added error stack to actor association fail. --- src/actors.js | 4 +++- src/app.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/actors.js b/src/actors.js index ee3b022f..8ffc47a5 100755 --- a/src/actors.js +++ b/src/actors.js @@ -934,7 +934,9 @@ async function associatePeople(releases, batchId, type = 'actor') { return actors; } catch (error) { - logger.error(`Failed to associate actors: ${error.message}`); + logger.error(`Failed to associate actors: ${error.message} ${error.stack}`); + logger.error(error); + console.log(error); return []; } diff --git a/src/app.js b/src/app.js index d9abf23e..926e3750 100755 --- a/src/app.js +++ b/src/app.js @@ -39,7 +39,7 @@ unprint.options({ }); unprint.on('requestInit', (event) => logger.debug(`Unprint ${event.method} (${event.interval}ms/${event.concurrency}p) ${event.url}`)); -unprint.on('requestError', (event) => logger.error(`Unprint to fetch ${event.url} (${event.status}): ${event.statusText}`)); +unprint.on('requestError', (event) => logger.error(`Unprint failed ${event.method} ${event.url} (${event.status}): ${event.statusText}`)); /* function logActive() {