aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-05-15 10:15:09 -0400
committerAdam Soltys <[email protected]>2021-05-15 10:17:00 -0400
commit37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d (patch)
treecf3b41049333310fc8bddf6ce083debd917730e8
parentc61f786be428dfc950ae498330a0589f91763331 (diff)
downloadcoinos-server-37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d.tar.gz
coinos-server-37412d24f5c7b0c6d316ce240ef29cd4ccd2ca6d.zip
logging
-rw-r--r--index.js6
-rw-r--r--routes/assets.js2
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