From 4b449cb9372fdbb7bce665fa3e808c7b9c32c175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20R=C3=B3=C5=BCa=C5=84ski?= Date: Fri, 19 Jul 2024 09:43:47 +0200 Subject: [PATCH] review feedback --- mesh/mesh.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mesh/mesh.go b/mesh/mesh.go index d9ebe43f7d..b32bcc4605 100644 --- a/mesh/mesh.go +++ b/mesh/mesh.go @@ -131,7 +131,10 @@ func (msh *Mesh) recoverFromDB(latest types.LayerID) { if applied.After(types.GetEffectiveGenesis()) { if err = msh.executor.Revert(context.Background(), applied); err != nil { - msh.logger.Fatal("failed to load state for layer", msh.LatestLayerInState().Field().Zap(), zap.Error(err)) + msh.logger.Fatal("failed to load state for layer", + zap.Error(err), + zap.Uint32("layer", msh.LatestLayerInState().Uint32()), + ) } } msh.logger.Info("recovered mesh from disk",