diff options
| author | Adam Soltys <[email protected]> | 2021-05-15 10:15:09 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-05-15 10:17:00 -0400 |
| commit | 37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d (patch) | |
| tree | cf3b41049333310fc8bddf6ce083debd917730e8 | |
| parent | c61f786be428dfc950ae498330a0589f91763331 (diff) | |
| download | coinos-server-37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d.tar.gz coinos-server-37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d.zip | |
logging
| -rw-r--r-- | index.js | 6 | ||||
| -rw-r--r-- | routes/assets.js | 2 |
2 files changed, 5 insertions, 3 deletions
@@ -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 |
