add a lot more logging to both client and server to analyze #81
> #81 Compiling brush doesn't seem to finish correctly sometimes, which causes loss of data > Sometimes it seems like the client state can get desynced (server render thread dies due to a panic?) and then the server starts dropping all requests for drawing the brush. > These panics should never happen of course, but we need better logging first to determine the exact cause.
This commit is contained in:
parent
6cfbc4f05f
commit
26d3b8ed8a
5 changed files with 86 additions and 11 deletions
|
@ -20,13 +20,23 @@ export class User {
|
|||
}
|
||||
|
||||
setBrush(brush) {
|
||||
console.group("setBrush", this.nickname);
|
||||
let compileResult = this.haku.setBrush(brush);
|
||||
console.log("compiling brush complete", compileResult);
|
||||
console.groupEnd();
|
||||
|
||||
this.isBrushOk = compileResult.status == "ok";
|
||||
|
||||
return compileResult;
|
||||
}
|
||||
|
||||
renderBrushToChunks(wall, x, y) {
|
||||
return this.painter.renderBrushToWall(this.haku, x, y, wall);
|
||||
console.group("renderBrushToChunks", this.nickname);
|
||||
let result = this.painter.renderBrushToWall(this.haku, x, y, wall);
|
||||
console.log("rendering brush to chunks complete");
|
||||
console.groupEnd();
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue