change logger of pixels

This commit is contained in:
HF 2022-07-31 09:45:35 +02:00
parent f8552b0ea6
commit 30c27c013c
2 changed files with 5 additions and 4 deletions

View File

@ -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;
/*

View File

@ -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;