tangled
alpha
login
or
join now
stream.place
/
streamplace
77
fork
atom
Live video on the AT Protocol
77
fork
atom
overview
issues
1
pulls
pipelines
chore: remove some log.warn calls
Eli Mallon
2 weeks ago
890a067b
13e9afb3
+4
-4
1 changed file
expand all
collapse all
unified
split
pkg
director
stream_session.go
+4
-4
pkg/director/stream_session.go
···
473
473
func (ss *StreamSession) UpdateLivestream(ctx context.Context, repoDID string) {
474
474
select {
475
475
case ss.livestreamUpdateChan <- struct{}{}:
476
476
-
log.Warn(ctx, "livestream update signal sent")
476
476
+
log.Debug(ctx, "livestream update signal sent")
477
477
default:
478
478
-
log.Warn(ctx, "livestream update channel full, signal already pending")
478
478
+
log.Debug(ctx, "livestream update channel full, signal already pending")
479
479
// Channel full, signal already pending
480
480
}
481
481
}
···
489
489
return nil
490
490
case <-ss.livestreamUpdateChan:
491
491
if time.Since(ss.lastLivestreamTime) < livestreamUpdateInterval {
492
492
-
log.Warn(ctx, "not updating livestream, last livestream was less than 30 seconds ago")
492
492
+
log.Debug(ctx, "not updating livestream, last livestream was less than 30 seconds ago")
493
493
continue
494
494
}
495
495
if err := ss.doUpdateLivestream(ctx, repoDID); err != nil {
···
547
547
return fmt.Errorf("could not update livestream record: %w", err)
548
548
}
549
549
550
550
-
log.Warn(ctx, "updated livestream record", "uri", lastLivestream.URI)
550
550
+
log.Debug(ctx, "updated livestream record", "uri", lastLivestream.URI)
551
551
ss.lastLivestreamTime = time.Now()
552
552
553
553
return nil