Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit a1b42be

Browse files
authored
Merge pull request #893 from iotaledger/feat/update-log-level
Update log levels.
2 parents 3bfd659 + ffa8beb commit a1b42be

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

components/protocol/component.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func provide(c *dig.Container) error {
175175

176176
func configure() error {
177177
deps.Protocol.Network.OnBlockReceived(func(block *model.Block, _ peer.ID) {
178-
Component.LogDebugf("BlockReceived: %s", block.ID())
178+
Component.LogTracef("BlockReceived: %s", block.ID())
179179
})
180180
deps.Protocol.Network.OnCommitmentRequestReceived(func(commitmentID iotago.CommitmentID, _ peer.ID) {
181181
Component.LogDebugf("SlotCommitmentRequestReceived: %s", commitmentID)

pkg/protocol/chains.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ func attachEngineLogs(instance *engine.Engine) func() {
185185
}).Unhook,
186186

187187
events.Notarization.SlotCommitted.Hook(func(details *notarization.SlotCommittedDetails) {
188-
instance.LogTrace("NotarizationManager.SlotCommitted", "commitment", details.Commitment.ID(), "acceptedBlocks count", details.AcceptedBlocks.Size(), "accepted transactions", len(details.Mutations))
188+
instance.LogDebug("NotarizationManager.SlotCommitted", "commitment", details.Commitment.ID(), "acceptedBlocks count", details.AcceptedBlocks.Size(), "accepted transactions", len(details.Mutations))
189189
}).Unhook,
190190

191191
events.Notarization.LatestCommitmentUpdated.Hook(func(commitment *model.Commitment) {
192-
instance.LogTrace("NotarizationManager.LatestCommitmentUpdated", "commitment", commitment.ID())
192+
instance.LogDebug("NotarizationManager.LatestCommitmentUpdated", "commitment", commitment.ID())
193193
}).Unhook,
194194

195195
events.BlockGadget.BlockPreAccepted.Hook(func(block *blocks.Block) {
@@ -209,7 +209,7 @@ func attachEngineLogs(instance *engine.Engine) func() {
209209
}).Unhook,
210210

211211
events.SlotGadget.SlotFinalized.Hook(func(slot iotago.SlotIndex) {
212-
instance.LogTrace("SlotGadget.SlotFinalized", "slot", slot)
212+
instance.LogDebug("SlotGadget.SlotFinalized", "slot", slot)
213213
}).Unhook,
214214

215215
events.SeatManager.OnlineCommitteeSeatAdded.Hook(func(seat account.SeatIndex, accountID iotago.AccountID) {

pkg/protocol/engine/notarization/slotnotarization/manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (m *Manager) isCommittable(slot iotago.SlotIndex, acceptedBlockSlot iotago.
199199
}
200200

201201
func (m *Manager) createCommitment(slot iotago.SlotIndex) (*model.Commitment, error) {
202-
m.LogTrace("Trying to create commitment for slot", "slot", slot)
202+
m.LogDebug("Trying to create commitment for slot", "slot", slot)
203203
m.commitmentMutex.Lock()
204204
defer m.commitmentMutex.Unlock()
205205

@@ -260,7 +260,7 @@ func (m *Manager) createCommitment(slot iotago.SlotIndex) (*model.Commitment, er
260260
rmc,
261261
)
262262

263-
m.LogTrace("Committing", "commitment", newCommitment, "roots ", roots)
263+
m.LogDebug("Committing", "commitment", newCommitment, "roots ", roots)
264264

265265
newModelCommitment, err := model.CommitmentFromCommitment(newCommitment, apiForSlot, serix.WithValidation())
266266
if err != nil {

0 commit comments

Comments
 (0)