Skip to content

Commit 08b169c

Browse files
committed
Add additional logging to batch sending
1 parent f02fbd6 commit 08b169c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pc/request.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,12 +708,15 @@ bool price::send( price *prices[], const unsigned n )
708708
for ( unsigned i = 0, j = 0; i < n; ++i ) {
709709
price *const p = prices[ i ];
710710
if ( PC_UNLIKELY( ! p->init_ && ! p->init_publish() ) ) {
711+
PC_LOG_ERR( "failed to initialize publisher" );
711712
continue;
712713
}
713714
if ( PC_UNLIKELY( ! p->has_publisher() ) ) {
715+
PC_LOG_ERR( "missing publish permission" );
714716
continue;
715717
}
716718
if ( PC_UNLIKELY( ! p->get_is_ready_publish() ) ) {
719+
PC_LOG_ERR( "not ready to publish - check rpc / pyth_tx connection" );
717720
continue;
718721
}
719722
manager *const mgr = p->get_manager();

0 commit comments

Comments
 (0)