qol: small logging tweaks for easier log correlation in debug mode

This commit is contained in:
Cassandra Heart 2025-10-07 00:18:07 -05:00
parent 923add5120
commit f06c65a901
No known key found for this signature in database
GPG Key ID: 371083BFA6C240AA
3 changed files with 7 additions and 1 deletions

View File

@ -162,9 +162,11 @@ func (m *Manager) PlanAndAllocate(
)
continue
}
if s.Shards == 0 {
s.Shards = 1
}
var score *big.Int
switch m.Strategy {
case DataGreedy:
@ -191,6 +193,7 @@ func (m *Manager) PlanAndAllocate(
if err != nil {
return nil, errors.Wrap(err, "plan and allocate")
}
if shardsSqrt.IsZero() {
return nil, errors.New("plan and allocate")
}

View File

@ -1612,7 +1612,8 @@ func (g *GlobalTimeReel) bootstrapFromStore() error {
}
// persistCanonicalFrames writes a contiguous set of canonical frames to the
// store in one txn. In non-archive mode, it also prunes old frames from the store.
// store in one txn. In non-archive mode, it also prunes old frames from the
// store.
func (g *GlobalTimeReel) persistCanonicalFrames(
frames []*protobufs.GlobalFrame,
) error {

View File

@ -188,6 +188,7 @@ func (r *DataWorkerIPCServer) RespawnServer(filter []byte) error {
r.logger.Info(
"data worker listening",
zap.String("address", r.listenAddrGRPC),
zap.String("resolved", lis.Addr().String()),
)
if len(filter) != 0 {
globalTimeReel, err := r.appConsensusEngineFactory.CreateGlobalTimeReel()
@ -217,6 +218,7 @@ func (r *DataWorkerIPCServer) CreateJoinProof(
ctx context.Context,
req *protobufs.CreateJoinProofRequest,
) (*protobufs.CreateJoinProofResponse, error) {
r.logger.Debug("received request to create join proof")
proof := r.frameProver.CalculateMultiProof(
[32]byte(req.Challenge),
req.Difficulty,