@@ -200,7 +200,7 @@ ngx_rtmp_cmd_connect(ngx_rtmp_session_t *s, ngx_rtmp_connect_t *v)
200200
201201 cscf = ngx_rtmp_get_module_srv_conf (s , ngx_rtmp_core_module );
202202
203- ngx_log_debug8 ( NGX_LOG_DEBUG_RTMP , s -> connection -> log , 0 ,
203+ ngx_log_error ( NGX_LOG_INFO , s -> connection -> log , 0 ,
204204 "connect: app='%s' flashver='%s' swf_url='%s' "
205205 "tc_url='%s' page_url='%s' acodecs=%uD vcodecs=%uD "
206206 "object_encoding=%ui" ,
@@ -327,7 +327,7 @@ ngx_rtmp_cmd_create_stream(ngx_rtmp_session_t *s, ngx_rtmp_create_stream_t *v)
327327 h .csid = NGX_RTMP_CMD_CSID_AMF_INI ;
328328 h .type = NGX_RTMP_MSG_AMF_CMD ;
329329
330- ngx_log_debug0 ( NGX_LOG_DEBUG_RTMP , s -> connection -> log , 0 ,
330+ ngx_log_error ( NGX_LOG_INFO , s -> connection -> log , 0 ,
331331 "createStream" );
332332
333333 /* send result with standard stream */
@@ -415,6 +415,9 @@ ngx_rtmp_cmd_delete_stream(ngx_rtmp_session_t *s, ngx_rtmp_delete_stream_t *v)
415415{
416416 ngx_rtmp_close_stream_t cv ;
417417
418+ ngx_log_error (NGX_LOG_INFO , s -> connection -> log , 0 ,
419+ "deleteStream" );
420+
418421 /* chain close_stream */
419422 cv .stream = 0 ;
420423 return ngx_rtmp_close_stream
@@ -523,7 +526,7 @@ ngx_rtmp_cmd_publish(ngx_rtmp_session_t *s, ngx_rtmp_publish_t *v)
523526 out_inf , sizeof (out_inf ) },
524527 };
525528
526- ngx_log_debug4 ( NGX_LOG_DEBUG_RTMP , s -> connection -> log , 0 ,
529+ ngx_log_error ( NGX_LOG_INFO , s -> connection -> log , 0 ,
527530 "publish: name='%s' args='%s' type=%s silent=%d" ,
528531 v -> name , v -> args , v -> type , v -> silent );
529532
@@ -621,7 +624,7 @@ ngx_rtmp_cmd_fcpublish(ngx_rtmp_session_t *s, ngx_rtmp_fcpublish_t *v)
621624 out_inf , sizeof (out_inf ) },
622625 };
623626
624- ngx_log_debug1 ( NGX_LOG_DEBUG_RTMP , s -> connection -> log , 0 ,
627+ ngx_log_error ( NGX_LOG_INFO , s -> connection -> log , 0 ,
625628 "fcpublish: name='%s'" , v -> name );
626629
627630 /* send onFCPublish reply */
@@ -801,8 +804,8 @@ ngx_rtmp_cmd_play(ngx_rtmp_session_t *s, ngx_rtmp_play_t *v)
801804 out4_inf , sizeof (out4_inf ) },
802805 };
803806
804- ngx_log_debug6 ( NGX_LOG_DEBUG_RTMP , s -> connection -> log , 0 ,
805- "cmd: play name='%s' args='%s' start=%i duration=%i "
807+ ngx_log_error ( NGX_LOG_INFO , s -> connection -> log , 0 ,
808+ "play name='%s' args='%s' start=%i duration=%i "
806809 "reset=%i silent=%i" ,
807810 v -> name , v -> args , (ngx_int_t ) v -> start ,
808811 (ngx_int_t ) v -> duration , (ngx_int_t ) v -> reset ,
@@ -934,7 +937,7 @@ ngx_rtmp_cmd_fcsubscribe(ngx_rtmp_session_t *s, ngx_rtmp_fcsubscribe_t *v)
934937 sizeof (out_inf ) },
935938 };
936939
937- ngx_log_debug1 ( NGX_LOG_DEBUG_RTMP , s -> connection -> log , 0 ,
940+ ngx_log_error ( NGX_LOG_INFO , s -> connection -> log , 0 ,
938941 "fcsubscribe: name='%s'" , v -> name );
939942
940943 /* send onFCSubscribe reply */
@@ -1038,6 +1041,10 @@ ngx_rtmp_cmd_pause(ngx_rtmp_session_t *s, ngx_rtmp_pause_t *v)
10381041 out_inf , sizeof (out_inf ) },
10391042 };
10401043
1044+ ngx_log_error (NGX_LOG_INFO , s -> connection -> log , 0 ,
1045+ "pause: state='%i' position=%i" ,
1046+ v -> pause , (ngx_int_t ) v -> position );
1047+
10411048 /* send onStatus reply */
10421049 ngx_memzero (& h , sizeof (h ));
10431050 h .type = NGX_RTMP_MSG_AMF_CMD ;
@@ -1068,6 +1075,9 @@ static ngx_int_t
10681075ngx_rtmp_cmd_disconnect (ngx_rtmp_session_t * s , ngx_rtmp_header_t * h ,
10691076 ngx_chain_t * in )
10701077{
1078+ ngx_log_error (NGX_LOG_INFO , s -> connection -> log , 0 ,
1079+ "disconnect" );
1080+
10711081 return ngx_rtmp_delete_stream
10721082 ? ngx_rtmp_delete_stream (s , NULL )
10731083 : NGX_OK ;
@@ -1152,6 +1162,9 @@ ngx_rtmp_cmd_seek(ngx_rtmp_session_t *s, ngx_rtmp_seek_t *v)
11521162 out_inf , sizeof (out_inf ) },
11531163 };
11541164
1165+ ngx_log_error (NGX_LOG_INFO , s -> connection -> log , 0 ,
1166+ "seek: offset=%i" , (ngx_int_t ) v -> offset );
1167+
11551168 /* send onStatus reply */
11561169 ngx_memzero (& h , sizeof (h ));
11571170 h .type = NGX_RTMP_MSG_AMF_CMD ;
0 commit comments