<div dir="ltr">I understand error messages and expect them by design, but my problem is large disk writes to log file because of them. I'm looking how to disable logging them to log file.<div><br><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-06-04 11:04 GMT+03:00 Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""> On 4 June 2014 at 04:50:02, Andrius Norkaitis (<a href="mailto:andnrk@gmail.com">andnrk@gmail.com</a>) wrote:<br>
> > QueueDeclarePassive(QueueName) generated error in log file.<br>
> E.g.<br>
><br>
> if queue not exist, it writes:<br>
><br>
</div>> =ERROR REPORT==== 4-Jun-2014(<a href="http://airmail.calendar/2014-06-04%2012:00:00%20GMT+4)::03:33:00" target="_blank">http://airmail.calendar/2014-06-04%2012:00:00%20GMT+4)::03:33:00</a><br>
<div class="">> ===<br>
> connection <0.26865.9>, channel 3 - soft error:<br>
> {amqp_error,not_found,<br>
> "no queue 'xxxx' in vhost '/'",<br>
> 'queue.declare'}<br>
<br>
</div>Which is entirely expected.<br>
<div class=""><br>
> If it exist, it writes:<br>
><br>
</div>> =ERROR REPORT==== 4-Jun-2014(<a href="http://airmail.calendar/2014-06-04%2012:00:00%20GMT+4)::03:33:05" target="_blank">http://airmail.calendar/2014-06-04%2012:00:00%20GMT+4)::03:33:05</a><br>
<div class="">> ===<br>
> connection <0.26865.9>, channel 3 - soft error:<br>
> {amqp_error,resource_locked,<br>
> "cannot obtain exclusive access to locked queue 'xxxx' in vhost<br>
> '/'",<br>
> 'queue.declare'}<br>
<br>
</div>The message says that you have 2 connections trying to use a queue<br>
declared as exclusive. Use a non-exclusive queue and there will be no error.<br>
<div class=""> <br>
> How to disable error logging when using this function? Maybe<br>
> there is new way to check queue exist?<br>
<br>
</div>There is no but you can simply declare the queue with the same arguments<br>
instead of checking if it exists.<br>
--<br>
MK<br>
<br>
Software Engineer, Pivotal/RabbitMQ<br>
</blockquote></div><br></div></div></div>