mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	refine ingester pithy print
This commit is contained in:
		
							parent
							
								
									cb2959ae7d
								
							
						
					
					
						commit
						fd0efecbc8
					
				
					 3 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -345,12 +345,11 @@ void SrsIngester::ingester()
 | 
			
		|||
    }
 | 
			
		||||
    
 | 
			
		||||
    // reportable
 | 
			
		||||
    if (!pithy_print->can_print()) {
 | 
			
		||||
        return;
 | 
			
		||||
    if (pithy_print->can_print()) {
 | 
			
		||||
        // TODO: FIXME: show more info.
 | 
			
		||||
        srs_trace("-> "SRS_LOG_ID_INGESTER
 | 
			
		||||
            " time=%"PRId64", ingesters=%d", pithy_print->age(), (int)ingesters.size());
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    // TODO: FIXME: show more info.
 | 
			
		||||
    srs_trace("-> time=%"PRId64", ingesters=%d", pithy_print->age(), (int)ingesters.size());
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int SrsIngester::on_reload_vhost_added(string vhost)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -156,5 +156,7 @@ extern ISrsThreadContext* _srs_context;
 | 
			
		|||
#define SRS_LOG_ID_CLIENT_PUBLISH "CPB"
 | 
			
		||||
// web/flash publish to edge/origin
 | 
			
		||||
#define SRS_LOG_ID_WEB_PUBLISH "WPB"
 | 
			
		||||
// ingester for edge(play)/origin
 | 
			
		||||
#define SRS_LOG_ID_INGESTER "IGS"
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -47,6 +47,7 @@ public:
 | 
			
		|||
    virtual void set_recv_timeout(int64_t timeout_us) = 0;
 | 
			
		||||
    virtual int64_t get_recv_timeout() = 0;
 | 
			
		||||
    virtual int64_t get_recv_bytes() = 0;
 | 
			
		||||
    // TODO: FIXME: remove this interface.
 | 
			
		||||
    virtual int get_recv_kbps() = 0;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -63,6 +64,7 @@ public:
 | 
			
		|||
    virtual void set_send_timeout(int64_t timeout_us) = 0;
 | 
			
		||||
    virtual int64_t get_send_timeout() = 0;
 | 
			
		||||
    virtual int64_t get_send_bytes() = 0;
 | 
			
		||||
    // TODO: FIXME: remove this interface.
 | 
			
		||||
    virtual int get_send_kbps() = 0;
 | 
			
		||||
    virtual int writev(const iovec *iov, int iov_size, ssize_t* nwrite) = 0;
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue