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"><<a href="mailto:videlalvaro@gmail.com">videlalvaro@gmail.com</a>></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'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">"</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">)."</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 '{file,"'${RABBITMQ_LOGS}'"}' \</div>
<div> -sasl sasl_error_logger '{file,"'${RABBITMQ_SASL_LOGS}'"}' \</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's actually a good thing that this happened, because it's notified me of a 'looping' 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"><<a href="mailto:matthew@rabbitmq.com" target="_blank">matthew@rabbitmq.com</a>></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>
> Hmm, are there any plans to make this easier for a user to change via the<br>
> config?? Almost every other daemon I know has support for this, so it makes<br>
> RabbitMQ terribly unfriendly :(<br>
<br>
</div>Yes, we have been thinking about this on and off for quite some time.<br>
I'm not sure what the current plans are wrt this, but you'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>