diff --git a/pkg/rpc/utils.go b/pkg/rpc/utils.go index af76216c5..d889d884e 100644 --- a/pkg/rpc/utils.go +++ b/pkg/rpc/utils.go @@ -54,7 +54,7 @@ func CheckProverBalance( return false, err } - log.Info("prover's deposited taikoTokenBalance", "balance", depositedBalance.String(), "address", prover.Hex()) + log.Info("Prover's deposited taikoTokenBalance", "balance", depositedBalance.String(), "address", prover.Hex()) if bond.Cmp(depositedBalance) > 0 { // Check allowance on taiko token contract @@ -63,7 +63,7 @@ func CheckProverBalance( return false, err } - log.Info("prover allowance for TaikoL1 contract", "allowance", allowance.String(), "address", prover.Hex()) + log.Info("Prover allowance for TaikoL1 contract", "allowance", allowance.String(), "address", prover.Hex()) // Check prover's taiko token balance balance, err := rpc.TaikoToken.BalanceOf(&bind.CallOpts{Context: ctxWithTimeout}, prover) @@ -71,7 +71,7 @@ func CheckProverBalance( return false, err } - log.Info("prover's wallet taiko token balance", "balance", balance.String(), "address", prover.Hex()) + log.Info("Prover's wallet taiko token balance", "balance", balance.String(), "address", prover.Hex()) if bond.Cmp(allowance) > 0 || bond.Cmp(balance) > 0 { log.Info( diff --git a/prover/capacity_manager/capacity_manager.go b/prover/capacity_manager/capacity_manager.go index 6535a43cc..78164f1cf 100644 --- a/prover/capacity_manager/capacity_manager.go +++ b/prover/capacity_manager/capacity_manager.go @@ -22,7 +22,7 @@ func (m *CapacityManager) ReadCapacity() uint64 { m.mutex.RLock() defer m.mutex.RUnlock() - log.Info("reading capacity", "capacity", m.capacity) + log.Info("Reading capacity", "capacity", m.capacity) return m.capacity } @@ -34,7 +34,7 @@ func (m *CapacityManager) ReleaseOneCapacity() uint64 { m.capacity += 1 - log.Info("released capacity", "capacityAfterRelease", m.capacity) + log.Info("Released capacity", "capacityAfterRelease", m.capacity) return m.capacity } @@ -45,14 +45,13 @@ func (m *CapacityManager) TakeOneCapacity() (uint64, bool) { defer m.mutex.Unlock() if m.capacity == 0 { - log.Info("could not take one capacity", "capacity", m.capacity) - + log.Info("Could not take one capacity", "capacity", m.capacity) return 0, false } m.capacity -= 1 - log.Info("took one capacity", "capacityAfterTaking", m.capacity) + log.Info("Took one capacity", "capacityAfterTaking", m.capacity) return m.capacity, true } diff --git a/prover/server/api.go b/prover/server/api.go index a37171886..921d81145 100644 --- a/prover/server/api.go +++ b/prover/server/api.go @@ -80,7 +80,8 @@ func (srv *ProverServer) CreateAssignment(c echo.Context) error { } if req.Fee.Cmp(srv.minProofFee) < 0 { - log.Warn("Proof fee too low", + log.Warn( + "Proof fee too low", "reqFee", req.Fee.String(), "srvMinProofFee", srv.minProofFee.String(), "proposerIP", c.RealIP(), @@ -89,7 +90,8 @@ func (srv *ProverServer) CreateAssignment(c echo.Context) error { } if req.Expiry > uint64(time.Now().Add(srv.maxExpiry).Unix()) { - log.Warn("Expiry too long", + log.Warn( + "Expiry too long", "requestExpiry", req.Expiry, "srvMaxExpiry", srv.maxExpiry, "proposerIP", c.RealIP(),