Increase debug logging

This commit is contained in:
Saxon Nelson-Milton 2024-04-07 00:48:40 +00:00
parent 391db6b210
commit a40faaa23e
1 changed files with 4 additions and 0 deletions

View File

@ -300,6 +300,7 @@ func (m *broadcastManager) control(w http.ResponseWriter, r *http.Request) {
default: default:
m.errorLogWrite(m.log, w, "unhandled http method", "method", r.Method) m.errorLogWrite(m.log, w, "unhandled http method", "method", r.Method)
} }
m.log.Info("finished handling control request")
} }
// slate handles slate API requests to upload a new slate video. // slate handles slate API requests to upload a new slate video.
@ -447,11 +448,13 @@ func (m *broadcastManager) createOrUpdate(broadcast Broadcast) error {
maybeOld = &broadcast maybeOld = &broadcast
} }
m.log.Debug("attempting to start init or start pipeline")
var err error var err error
maybeOld.rv, err = m.initOrStartPipeline(maybeOld.rv, broadcast.urls) maybeOld.rv, err = m.initOrStartPipeline(maybeOld.rv, broadcast.urls)
if err != nil { if err != nil {
return fmt.Errorf("could not get revid pipeline: %w", err) return fmt.Errorf("could not get revid pipeline: %w", err)
} }
m.log.Debug("finished attempting to init or start pipeline")
// If the URLS have changed, we need to update the revid pipeline. // If the URLS have changed, we need to update the revid pipeline.
// We won't enter this if we've just created a new revid pipeline. // We won't enter this if we've just created a new revid pipeline.
@ -462,6 +465,7 @@ func (m *broadcastManager) createOrUpdate(broadcast Broadcast) error {
if err != nil { if err != nil {
return fmt.Errorf("could not update revid: %w", err) return fmt.Errorf("could not update revid: %w", err)
} }
m.log.Debug("finished updating pipeline config")
} }
// If the status has changed, we need to update accordingly. // If the status has changed, we need to update accordingly.