<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] How can I turn off the tMongoDBRow stdout log messages? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341018#M108999</link>
    <description>Hi,&lt;BR /&gt;What's kind of&amp;nbsp; information printed on console? Did you turn on tlogCatcher or tStatCatcher? Could you please upload screenshots into forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Wed, 03 Sep 2014 04:10:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-03T04:10:20Z</dc:date>
    <item>
      <title>[resolved] How can I turn off the tMongoDBRow stdout log messages?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341017#M108998</link>
      <description>All of the mongo components print out a large amount of information to stdout. How may I turn this off ?
&lt;BR /&gt;EDIT --
&lt;BR /&gt;Sorry I just realized that its only the tMongoDBRow component, not the others. See the below post.</description>
      <pubDate>Sat, 16 Nov 2024 11:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341017#M108998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How can I turn off the tMongoDBRow stdout log messages?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341018#M108999</link>
      <description>Hi,&lt;BR /&gt;What's kind of&amp;nbsp; information printed on console? Did you turn on tlogCatcher or tStatCatcher? Could you please upload screenshots into forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Wed, 03 Sep 2014 04:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341018#M108999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-03T04:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How can I turn off the tMongoDBRow stdout log messages?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341019#M109000</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi,&lt;BR /&gt;What's kind of&amp;nbsp; information printed on console? Did you turn on tlogCatcher or tStatCatcher? Could you please upload screenshots into forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Sabrina. I do not have a tLogCatcher or tStatCatcher turned on. 
&lt;BR /&gt;--- EDIT 
&lt;BR /&gt;I figured out that it was the tMongoDBRow component that prints everything to the console, and not the other mongodb components. 
&lt;BR /&gt;In this tMongoDBRow, I'm simply inserting a {'foo':'bar'} document into a collection, and get a lot of noise in the stdout: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEqH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142742iA5ADF5056FF2CFBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEqH.png" alt="0683p000009MEqH.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;If I take a look at the code and search for "System.out.println", I come to this portion which must be the culprit: 
&lt;BR /&gt; 
&lt;PRE&gt;	 *  stop&lt;BR /&gt;				 */&lt;BR /&gt;				/**&lt;BR /&gt;				 *  start&lt;BR /&gt;				 */&lt;BR /&gt;				currentComponent = "tMongoDBRow_1";&lt;BR /&gt;				com.mongodb.Mongo mongo_tMongoDBRow_1 = null;&lt;BR /&gt;				com.mongodb.DB db_tMongoDBRow_1 = null;&lt;BR /&gt;				try {&lt;BR /&gt;					mongo_tMongoDBRow_1 = (com.mongodb.Mongo) globalMap&lt;BR /&gt;							.get("mongo_tMongoDBConnection_1");&lt;BR /&gt;					db_tMongoDBRow_1 = (com.mongodb.DB) globalMap&lt;BR /&gt;							.get("db_tMongoDBConnection_1");&lt;BR /&gt;					com.mongodb.CommandResult result_tMongoDBRow_1 = null;&lt;BR /&gt;					result_tMongoDBRow_1 = db_tMongoDBRow_1&lt;BR /&gt;							.doEval("db.test.insert({'foo':'bar'})");&lt;BR /&gt;					if (result_tMongoDBRow_1.ok()) {&lt;BR /&gt;						System.out.println(result_tMongoDBRow_1);&lt;BR /&gt;					} else {&lt;BR /&gt;						System.err.println(result_tMongoDBRow_1);&lt;BR /&gt;					}&lt;BR /&gt;				} catch (Exception e_tMongoDBRow_1) {&lt;BR /&gt;					System.err.println(e_tMongoDBRow_1.getMessage());&lt;BR /&gt;				}&lt;BR /&gt;				tos_count_tMongoDBRow_1++;&lt;BR /&gt;				/**&lt;BR /&gt;				 *  stop&lt;BR /&gt;				 */&lt;BR /&gt;				/**&lt;BR /&gt;				 *  start&lt;BR /&gt;				 */&lt;/PRE&gt; 
&lt;BR /&gt;Specifically, this piece: 
&lt;BR /&gt; 
&lt;PRE&gt;if (result_tMongoDBRow_1.ok()) {&lt;BR /&gt;						System.out.println(result_tMongoDBRow_1);&lt;BR /&gt;					} else {&lt;BR /&gt;						System.err.println(result_tMongoDBRow_1);&lt;BR /&gt;					}&lt;/PRE&gt; 
&lt;BR /&gt;I don't think its necessary to print to standard out when everything is OK. Perhaps there should be an option in the tMongoDBRow component to print debugging messages, instead.</description>
      <pubDate>Thu, 04 Sep 2014 07:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341019#M109000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-04T07:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How can I turn off the tMongoDBRow stdout log messages?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341020#M109001</link>
      <description>Ok, here is a temporary workaround. 
&lt;BR /&gt;Create a job that you will use as a subjob from now on every time you wish to use a tMongoDBRow without having it print to stdout. 
&lt;BR /&gt;Create a context variable of type String called "mongo string". 
&lt;BR /&gt;Add a tMongoDBConnection--&amp;gt;tJava--&amp;gt;tMongoDBRow--&amp;gt;tJava like so: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEqM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156791i353BC75AFDAD128F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEqM.png" alt="0683p000009MEqM.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In the first tJava before the tMongoDBRow, redirect stdout to nothing with the following: 
&lt;BR /&gt; 
&lt;PRE&gt;System.setOut(new java.io.PrintStream(new java.io.ByteArrayOutputStream()));&lt;/PRE&gt; 
&lt;BR /&gt;In the tMongoDBRow, set the function to context.mongo_string. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEhf.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137635i02AF7D823779F3BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEhf.png" alt="0683p000009MEhf.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In the last tJava, direct stdout to the default via: 
&lt;BR /&gt; 
&lt;PRE&gt;System.setOut(new java.io.PrintStream(new java.io.FileOutputStream(java.io.FileDescriptor.out)));&lt;/PRE&gt; 
&lt;BR /&gt;Now when you run the job, the stdout logging messages will be supressed: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEqR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144088i61F73473D1E66951/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEqR.png" alt="0683p000009MEqR.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;This works but I think that there should be a check box allowing the user to chose whether these messages should be printed or not.</description>
      <pubDate>Fri, 12 Sep 2014 07:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-can-I-turn-off-the-tMongoDBRow-stdout-log-messages/m-p/2341020#M109001</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-12T07:04:39Z</dc:date>
    </item>
  </channel>
</rss>

