Hi Alvaro,<div><br></div><div>I had seen a similar post on the list (I think from Matthias) which explains how to fix using this approach,�but thank you for taking the time to explain this anyway!</div><div><br></div><div>
Cal</div><div><br></div><div><br><br><div class="gmail_quote">On Thu, Jun 23, 2011 at 4:48 PM, Alvaro Videla <span dir="ltr">&lt;<a href="mailto:videlalvaro@gmail.com">videlalvaro@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Hi,<div><br></div><div>According to the Erlang docs you can disable both SASL and rabbit logs by passing the following parameters to the rabbitmq-server init script:</div><div><br></div><div>
sbin/rabbitmq-server -kernel error_logger silent -sasl sasl_error_logger false</div><div><br></div><div>More docs on the topic here:�</div><div><br></div><div>SASL Logs: <a href="http://www.erlang.org/doc/man/sasl_app.html" target="_blank">http://www.erlang.org/doc/man/sasl_app.html</a></div>
<div>Erlang Kernel Docs:�<a href="http://www.erlang.org/doc/man/kernel_app.html" target="_blank">http://www.erlang.org/doc/man/kernel_app.html</a></div><div><br></div><div>Regarding specifying those parameters in a config file, that&#39;s possible too.</div>
<div><br></div><div>You can add them to this file for example:�<a href="http://www.rabbitmq.com/configure.html#config-file" target="_blank">http://www.rabbitmq.com/configure.html#config-file</a></div><div><br></div><div>So there you could add an entry like this:</div>
<div><br></div><div><div>{sasl, [</div><div><span style="white-space:pre-wrap">        </span>{sasl_error_logger, false}</div><div>]}</div></div><div><br></div><div>For the SASL logs</div><div><br></div><div>And another one like:</div>
<div><br></div><div>{kernel [</div><div><span style="white-space:pre-wrap">        </span>{error_logger, silent}</div><div>]}</div><div><br></div><div>The problem with this approach is that the command line arguments passed inside the rabbitmq-server script will override what you put on those .config files, as explained here:�<a href="http://www.erlang.org/doc/man/config.html" target="_blank">http://www.erlang.org/doc/man/config.html</a></div>
<div><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><br></span></div><div><span style="white-space:pre-wrap">&quot;</span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">Configuration parameter values in the configuration file will override the values in the application resource files (see�</span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-family:courier;font-weight:normal">app(4)</span></span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">). The values in the configuration file can be overridden by command line flags (see�</span><span style="font-family:Verdana, Arial, Helvetica, sans-serif"><span style="font-family:courier;font-weight:normal">erl(1)</span></span><span style="font-family:Verdana, Arial, Helvetica, sans-serif">).&quot;</span></div>
<div><br></div><div>�I think some tweaking of the rabbitmq-server script will do to solve this problem, specifically this lines:</div><div><br></div><div><div>�� �-sasl errlog_type error \</div><div>�� �-kernel error_logger &#39;{file,&quot;&#39;${RABBITMQ_LOGS}&#39;&quot;}&#39; \</div>
<div>�� �-sasl sasl_error_logger &#39;{file,&quot;&#39;${RABBITMQ_SASL_LOGS}&#39;&quot;}&#39; \</div></div><div><br></div><div>Hope this helps,</div><div><br></div><div>Alvaro</div><div><div><div></div><div class="h5"><br>
<div><div>On Jun 23, 2011, at 4:47 PM, Cal Leeming [Simplicity Media Ltd] wrote:</div><br><blockquote type="cite">Alright great :) Thanks for the advice on how to resolve the problem in the mean time.<div><br></div><div>Ironically, it&#39;s actually a good thing that this happened, because it&#39;s notified me of a &#39;looping&#39; bug in my code (in a round abouts way), which caused a DoS :)</div>

<div><br></div><div>Cal</div><div><br><div class="gmail_quote">On Thu, Jun 23, 2011 at 3:43 PM, Matthew Sackman <span dir="ltr">&lt;<a href="mailto:matthew@rabbitmq.com" target="_blank">matthew@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Thu, Jun 23, 2011 at 03:40:59PM +0100, Cal Leeming [Simplicity Media Ltd] wrote:<br>
&gt; Hmm, are there any plans to make this easier for a user to change via the<br>
&gt; config?? Almost every other daemon I know has support for this, so it makes<br>
&gt; RabbitMQ terribly unfriendly :(<br>
<br>
</div>Yes, we have been thinking about this on and off for quite some time.<br>
I&#39;m not sure what the current plans are wrt this, but you&#39;re not the<br>
first person to point out this problem, and we do have a bug open to<br>
look at sorting this out.<br>
<div><div></div><div><br>
Matthew<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>
_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div></div><div>
<div>Sent form my Nokia 1100</div><div><br></div><br>
</div>
<br></div></div></blockquote></div><br></div>