forked from ppfun/pixelplanet
change logger of pixels
This commit is contained in:
parent
f8552b0ea6
commit
30c27c013c
|
@ -139,9 +139,6 @@ export async function drawByOffsets(
|
|||
|
||||
|
||||
const [x, y, z] = getPixelFromChunkOffset(i, j, offset, canvasSize, is3d);
|
||||
pixelLogger.info(
|
||||
`${user.ip} ${user.id} ${canvasId} ${x} ${y} ${z} ${color} ${retCode}`,
|
||||
);
|
||||
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
const setColor = await RedisCanvas.getPixelByOffset(
|
||||
|
@ -150,6 +147,10 @@ export async function drawByOffsets(
|
|||
offset,
|
||||
);
|
||||
|
||||
pixelLogger.info(
|
||||
`${user.ip} ${user.id} ${canvasId} ${x} ${y} ${z} ${color} ${setColor}`,
|
||||
);
|
||||
|
||||
const clrIgnore = canvas.cli || 0;
|
||||
|
||||
/*
|
||||
|
|
|
@ -64,7 +64,7 @@ class User {
|
|||
|
||||
constructor() {
|
||||
// if id = null -> unregistered
|
||||
this.id = null;
|
||||
this.id = 0;
|
||||
this.regUser = null;
|
||||
this.ip = '127.0.0.1';
|
||||
this.ipSub = this.ip;
|
||||
|
|
Loading…
Reference in New Issue
Block a user