mirror of https://github.com/Aelita4/sshmon.git
Remove redundant console log
This commit is contained in:
parent
b5cfa42197
commit
a4166221de
|
@ -4,7 +4,6 @@ export default {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: "/ping/:ip",
|
url: "/ping/:ip",
|
||||||
callback: async (data: any, req: Request, res: Response) => {
|
callback: async (data: any, req: Request, res: Response) => {
|
||||||
console.log(data.pings)
|
|
||||||
const ip = req.params.ip;
|
const ip = req.params.ip;
|
||||||
const r = await data.ping(ip);
|
const r = await data.ping(ip);
|
||||||
if(!r.alive && data.pings.get(ip).split("_")[1] === "1") data.pings.set(ip, `${Date.now()}_0`);
|
if(!r.alive && data.pings.get(ip).split("_")[1] === "1") data.pings.set(ip, `${Date.now()}_0`);
|
||||||
|
|
Loading…
Reference in New Issue