question

Upvotes
Accepted
3 1 6 9

Any way to disable print of Refresh and Update message in the sample client app?

Any way to disable print of Refresh and Update message in the sample client app?

I am using sample client from example and the following methods

void AppClient::onRefreshMsg( const RefreshMsg& refreshMsg, const OmmConsumerEvent& )


void AppClient::onUpdateMsg( const UpdateMsg& updateMsg, const OmmConsumerEvent& )



Is there any way for me to stop the printing of refresh messages and update messages on stdout? I am reading data in a map for internal use and do not want the appclient to print Refresh and Update message on the stdout?

trep
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
24.7k 86 10 22

Hi @vishal.anand

Then it is not the application that is printing the RefreshMsg - the most likely explanation is that you have trace output enabled in your config?

<ConsumerGroup>
    <DefaultConsumer value="Consumer_1"/>
    <ConsumerList>
        <Consumer>
            <!-- Name is mandatory-->
            <Name value="Consumer_1"/>
            <!-- Channel is optional: defaulted to "RSSL_SOCKET+localhost+14002"-->
            <!-- Channel or ChannelSet may be specified -->
            <Channel value="Channel_1"/>
            <!-- Dictionary is optional: defaulted to "ChannelDictionary"-->
            <Dictionary value="Dictionary_1"/>
            <XmlTraceToStdout value="0"/>
            <Logger value="Logger_2"/>
        </Consumer>
    </ConsumerList>
</ConsumerGroup>

You can set XmlTraceToStdout = 0 to disable the trace output.




icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
30k 34 11 17

Hello @vishal.anand ,

If you are looking at examples that came with SDK, and cout statements inside callback that generate the printing,

Would commenting them out be what you are looking for?

// cout << ...


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
24.7k 86 10 22

Hi @vishal.anand

I would also recommend you work through the EMA tutorials to help with your understanding of what the code is doing - this should make any further development easier for you.

Tutorials | Refinitiv Developers

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
3 1 6 9

I am using the library and have onRefreshMsg call back implemented as empty. Even then it prints the Refresh Message, so the code is in library. Any way to disable it?

void AppClient::onRefreshMsg( const RefreshMsg& refreshMsg, const OmmConsumerEvent& )

{

}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
3 1 6 9

Amazing and thanks @umer.nalla .that worked

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.