From 09a5c6bf1eefd4beedcaed92b888be5e3822883f Mon Sep 17 00:00:00 2001 From: Pitu <7425261+Pitu@users.noreply.github.com> Date: Wed, 4 Oct 2017 02:46:31 -0300 Subject: [PATCH] Added a little bit of logging --- controllers/albumsController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/albumsController.js b/controllers/albumsController.js index 11b7903..2cdd06e 100644 --- a/controllers/albumsController.js +++ b/controllers/albumsController.js @@ -165,6 +165,7 @@ albumsController.generateZip = async (req, res, next) => { .generateNodeStream({ type: 'nodebuffer', streamFiles: true }) .pipe(fs.createWriteStream(zipPath)) .on('finish', async () => { + console.log(`Generated zip for album identifier: ${identifier}`); await db.table('albums') .where('id', album.id) .update({ zipGeneratedAt: Math.floor(Date.now() / 1000) });