mirror of
https://github.com/djhackersdev/minime.git
synced 2026-08-27 05:01:23 -05:00
Abbreviate startup msg logging
This commit is contained in:
@@ -60,7 +60,7 @@ app.use("/sys/servlet/PowerOn", async function(req, res, next) {
|
||||
});
|
||||
|
||||
app.post("/sys/servlet/PowerOn", function(req, resp) {
|
||||
debug("--- Startup Request ---\n\n", req.body);
|
||||
debug(`Startup Request: ${JSON.stringify(req.body)}`);
|
||||
|
||||
// Cut milliseconds out of ISO timestamp
|
||||
|
||||
@@ -91,8 +91,7 @@ app.post("/sys/servlet/PowerOn", function(req, resp) {
|
||||
token: req.body.token,
|
||||
};
|
||||
|
||||
debug("\n--- Startup Response ---\n\n", resParams);
|
||||
debug("");
|
||||
debug(`Startup response: ${JSON.stringify(resParams)}`);
|
||||
|
||||
resp.send(resParams);
|
||||
});
|
||||
|
||||
@@ -62,7 +62,7 @@ app.use(async function(req, res, next) {
|
||||
});
|
||||
|
||||
app.post("/request/", function(req, res) {
|
||||
debug("--- Billing Request ---\n\n", req.body);
|
||||
debug(`Billing request: ${JSON.stringify(req.body)}`);
|
||||
|
||||
const first = req.body[0];
|
||||
|
||||
@@ -135,8 +135,7 @@ app.post("/request/", function(req, res) {
|
||||
playhistory: "000000/0:000000/0:000000/0",
|
||||
});
|
||||
|
||||
debug("\n--- Billing Response ---\n\n", resItems);
|
||||
debug("");
|
||||
debug(`Billing response: ${JSON.stringify(resItems)}`);
|
||||
|
||||
res.set("content-type", "text/plain");
|
||||
res.send(resItems);
|
||||
|
||||
Reference in New Issue
Block a user