diff --git a/rtmp_callback.go b/rtmp_callback.go index 40b672a..d3a64d6 100644 --- a/rtmp_callback.go +++ b/rtmp_callback.go @@ -3,6 +3,7 @@ package main import ( + "fmt" "os" "time" @@ -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 } @@ -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 }