[rabbitmq-discuss] Removing "INFO REPORT" from logs (due to 30gb log file in 1 day)

Cal Leeming [Simplicity Media Ltd] cal.leeming at simplicitymedialtd.co.uk
Thu Jun 23 15:40:59 BST 2011


Hmm, are there any plans to make this easier for a user to change via the
config?? Almost every other daemon I know has support for this, so it makes
RabbitMQ terribly unfriendly :(

On Thu, Jun 23, 2011 at 3:38 PM, Matthew Sackman <matthew at rabbitmq.com>wrote:

> On Thu, Jun 23, 2011 at 03:34:20PM +0100, Cal Leeming [Simplicity Media
> Ltd] wrote:
> > So my server died a horrible death when all the disk space was used due
> to
> > this:
> >
> >  root at mysql01 [/var/log/rabbitmq] > ls -lah
> > total 38G
> > drwxr-xr-x  2 sshd ssh  4.0K Jun 19 07:25 .
> > drwxr-xr-x 10 root root 4.0K Jun 23 07:25 ..
> > -rw-r--r--  1 sshd ssh   38G Jun 23 01:45 rabbit at mysql01.log
> >
> >  root at mysql01 [/var/log/rabbitmq] > head rabbit at mysql01.log -n 2
> >
> > =INFO REPORT==== 19-Jun-2011::06:25:19 ===
> >
> > So, is there any way to actually stop those "INFO REPORT" messages from
> > being logged, but keep the error logs? I saw the thing about patching the
> > start up scripts (but that disables all logging, including errors, and
> seems
> > terribly hacky :S)
>
> I'm afraid there's no solution to this atm merely by configuration. If
> you're happy compiling from source then in rabbit_log.erl, you should
> find some lines:
>
> handle_cast({info, Fmt}, State) ->
>    error_logger:info_msg(Fmt),
>    {noreply, State};
> handle_cast({info, Fmt, Args}, State) ->
>    error_logger:info_msg(Fmt, Args),
>    {noreply, State};
>
>
> If you just entirely remove the error_logger:info_msg lines and
> recompile then you'll lose info messages (you'll get warnings when
> compiling about unused vars, but don't worry about that).
>
> Matthew
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110623/222042e0/attachment.htm>


More information about the rabbitmq-discuss mailing list