summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-08-08 16:16:34 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-08-08 16:16:34 +0200
commit722b27dc9cbecd90fafebebfee58eac137deb3df (patch)
tree845cd51b9173de0da8358091aa7cf2758d97a0d1
parent193c22d7d0aafd4a2e340940b2c283e8156ebc12 (diff)
downloadcruncher-722b27dc9cbecd90fafebebfee58eac137deb3df.tar.gz
cruncher-722b27dc9cbecd90fafebebfee58eac137deb3df.zip
output config on boot
-rw-r--r--worker.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/worker.js b/worker.js
index 8e0ef15..2a6523b 100644
--- a/worker.js
+++ b/worker.js
@@ -63,6 +63,10 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => {
await ch.assertQueue(QUEUE, { durable: true });
await ch.assertQueue(QUEUE + "_failed", { durable: true });
+ logger.info("configuration", {
+ SCRIPT, QUEUE, BATCHSIZE, MAXCONNS, LOAD_TIMEOUT
+ });
+
// load update SQL scripts; scripts use sequelize replacements
// for the `participant_api_id` array
const script = fs.readFileSync(SCRIPT, "utf8");