Skip to content

Commit

Permalink
rmv: logger
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Mar 4, 2024
1 parent 348d44f commit cf4bb98
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions internal/coder/protobuf_coder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ export class Coder implements ICoder {
}
return this.protobufType.decode(buffer);
} catch (error) {
Logger.error(error as any);
Logger.info({message: "Decodding Error: deserialize", data: {
buffer: buffer,
string: buffer.toString()
}});
throw new CoderError(
"Decoding error",
CoderError.codes.DECODING_ERROR,
Expand Down Expand Up @@ -125,15 +120,6 @@ export class Coder implements ICoder {
);
}

const _buffer = this.protobufType.encode(messageObject).finish();

if (this.messageType === "L1StateBlock") {
Logger.info({message: "In coder serialize - for L1StateBlock", data: {
base64: (_buffer as Buffer).toString("base64"),
stringData: _buffer.toString(),
_buffer
}});
}
return _buffer;
return this.protobufType.encode(messageObject).finish();
}
}

0 comments on commit cf4bb98

Please sign in to comment.