From 37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 15 May 2021 10:15:09 -0400 Subject: logging --- index.js | 6 +++--- routes/assets.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index d7dca11a..723dbb6e 100644 --- a/index.js +++ b/index.js @@ -119,7 +119,7 @@ app.post("/build", (req, res) => { }; mailgun.messages().send(data); - l.info("Build starting"); + l.info("build starting"); fs.writeFileSync("build.json", req.body.payload); const { exec } = require("child_process"); @@ -133,7 +133,7 @@ app.post("/build", (req, res) => { }; mailgun.messages().send(data); - l.warn("Build failed"); + l.warn("build failed"); } else { data = { subject: "Build finished", @@ -143,7 +143,7 @@ app.post("/build", (req, res) => { }; mailgun.messages().send(data); - l.info("Build finished"); + l.info("build finished"); } }); }); diff --git a/routes/assets.js b/routes/assets.js index 7d2cdfcf..38759e20 100644 --- a/routes/assets.js +++ b/routes/assets.js @@ -91,6 +91,8 @@ app.post( version }; + l.info("attempting issuance", req.user.username, contract); + sha256.update(JSON.stringify(contract)); const hash = sha256.digest("hex"); const contract_hash = hash -- cgit v1.2.3