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

vishal.anand
vishal.anand Contributor

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?

Tagged:

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    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.




Answers

  • zoya faberov
    zoya faberov ✭✭✭✭✭

    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 << ...


  • 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

  • vishal.anand
    vishal.anand Contributor

    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& )

    {

    }

  • vishal.anand
    vishal.anand Contributor

    Amazing and thanks @umer.nalla .that worked