mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
more logging
This commit is contained in:
parent
a966aa3431
commit
a9b20e6404
1 changed files with 7 additions and 0 deletions
|
@ -8,6 +8,7 @@ const {
|
|||
} = require("../../handlers/validation");
|
||||
const { stdDev, roundTo2 } = require("../../handlers/misc");
|
||||
const objecthash = require("object-hash");
|
||||
const Logger = require("../../handlers/logger");
|
||||
|
||||
class ResultController {
|
||||
static async getResults(req, res, next) {
|
||||
|
@ -235,6 +236,12 @@ class ResultController {
|
|||
|
||||
let addedResult = await ResultDAO.addResult(uid, result);
|
||||
|
||||
if (isPb) {
|
||||
Logger.log("result_saved_pb", addedResult.insertedId, uid);
|
||||
} else {
|
||||
Logger.log("result_saved_nopb", addedResult.insertedId, uid);
|
||||
}
|
||||
|
||||
return res.status(200).json({
|
||||
message: "Result saved",
|
||||
isPb,
|
||||
|
|
Loading…
Reference in a new issue