Skip to content

Commit

Permalink
Add debug logs for callback request
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSRG committed Sep 16, 2024
1 parent 2d20aa6 commit ff3ed88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rtmp_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package main

import (
"fmt"
"os"
"time"

Expand Down Expand Up @@ -67,6 +68,7 @@ func (s *RTMPSession) SendStartCallback() bool {
}

if res.StatusCode != 200 {
LogDebugSession(s.id, s.ip, "Callback request ended with status code: "+fmt.Sprint(res.StatusCode))
return false
}

Expand Down Expand Up @@ -129,6 +131,7 @@ func (s *RTMPSession) SendStopCallback() bool {
}

if res.StatusCode != 200 {
LogDebugSession(s.id, s.ip, "Callback request ended with status code: "+fmt.Sprint(res.StatusCode))
return false
}

Expand Down

0 comments on commit ff3ed88

Please sign in to comment.