From 34a9de511a4c4500f22e12b176c5cc032cd9e30c Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Tue, 21 Mar 2023 00:03:38 +0100 Subject: [PATCH] Slightly improve logging --- compose-db.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compose-db.js b/compose-db.js index 1a0c886..3a45ab5 100644 --- a/compose-db.js +++ b/compose-db.js @@ -449,6 +449,7 @@ async function main() { } }); + console.log(`[*] Configured for the "${data_owner}/${data_repo}" repository.`); const dataFetcher = new DataFetcher(data_owner, data_repo); const dataProcessor = new DataProcessor(); @@ -490,8 +491,9 @@ async function main() { "files": dataProcessor.files, }; try { - console.log("[*] Storing database to file.") + console.log("[*] Storing database to file."); await fs.writeFile(`out/${data_owner}.${data_repo}.data.json`, JSON.stringify(output), {encoding: "utf-8"}); + console.log("[*] Database built."); } catch (err) { console.error("Error saving database file: " + err); }