Skip to content

Commit 621ae21

Browse files
committed
adds logs for uptime report
Signed-off-by: Ashraf Fouda <ashraf.m.fouda@gmail.com>
1 parent d32dcb7 commit 621ae21

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/substrate_gateway/substrate_gateway.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ func (g *substrateGateway) UpdateNodeUptimeV2(uptime uint64, timestampHint uint6
413413
Str("method", "UpdateNodeUptimeV2").
414414
Uint64("uptime", uptime).
415415
Uint64("timestamp hint", timestampHint).
416-
Msg("method called")
416+
Msg("submitting uptime extrinsic")
417417

418418
g.mu.Lock()
419419
defer g.mu.Unlock()
@@ -427,6 +427,12 @@ func (g *substrateGateway) UpdateNodeUptimeV2(uptime uint64, timestampHint uint6
427427
return nil
428428
}, createBackoff())
429429

430+
log.Debug().
431+
Str("method", "UpdateNodeUptimeV2").
432+
Uint64("uptime", uptime).
433+
Uint64("timestamp hint", timestampHint).
434+
Msg("uptime extrinsic submitted successfully")
435+
430436
return
431437
}
432438

0 commit comments

Comments
 (0)