epmd floods my errors.log

Sergey Samokhin <>
Mon Aug 2 12:19:02 CEST 2010



Every time I do "erl -sname foo" or just "epmd -daemon" I see this
message written to errors.log:

Aug  2 13:22:13 myhost epmd: epmd: epmd running - daemon = 1

Usually my errors.log is full of these messages, which aren't actually
errors. It looks like loglevel for these messages is wrong.

Why and where this happens

Code we are interested in is in erts/epmd/src/epmd.c file

#1 First dbg_printf() is called with "epmd running - daemon = %d" format string
Source: http://github.com/erlang/otp/blob/dev/erts/epmd/src/epmd.c#L239

#2 Then dbg_printf() calls dbg_gen_printf()
Source: http://github.com/erlang/otp/blob/dev/erts/epmd/src/epmd.c#L494

#3 And here the message is actually sent to syslog.
Source: http://github.com/erlang/otp/blob/dev/erts/epmd/src/epmd.c#L449

The problem is that for the message LOG_ERR priority is used, which
seems to be wrong.
LOG_NOTICE, LOG_INFO or LOG_DEBUG seem more suitable here.


Related part of my /etc/syslog-ng.conf:

destination d_errors { file("/var/log/errors.log"); };
log { source(src); filter(f_err); destination(d_errors); };

There was similar letter some month ago:


Sergey Samokhin

More information about the erlang-bugs mailing list