Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  [PATCH] epmd: suppress startup message

Guest
Posted: Tue Aug 03, 2010 5:26 pm Reply with quote
Guest
Running transient distributed Erlang nodes can generate a large number
of informational messages to syslog. Modify epmd to log the startup
message only when passed the debug switch.

Reported-By: Sergey Samokhin
---
erts/epmd/src/epmd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c
index 6ddf30e..9c2ce06 100644
--- a/erts/epmd/src/epmd.c
+++ b/erts/epmd/src/epmd.c
@@ -236,7 +236,7 @@ int main(int argc, char** argv)
else
usage(g);
}
- dbg_printf(g,0,"epmd running - daemon = %d",g->is_daemon);
+ dbg_printf(g,1,"epmd running - daemon = %d",g->is_daemon);

#ifndef NO_SYSCONF
if ((g->max_conn = sysconf(_SC_OPEN_MAX)) <= 0)
--
1.5.4.3


________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Tue Aug 03, 2010 5:26 pm Reply with quote
Guest
Running transient distributed Erlang nodes can generate a large number
of informational messages to syslog. Modify epmd to log the startup
message only when passed the debug switch.

Reported-By: Sergey Samokhin
---
erts/epmd/src/epmd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/erts/epmd/src/epmd.c b/erts/epmd/src/epmd.c
index 6ddf30e..9c2ce06 100644
--- a/erts/epmd/src/epmd.c
+++ b/erts/epmd/src/epmd.c
@@ -236,7 +236,7 @@ int main(int argc, char** argv)
else
usage(g);
}
- dbg_printf(g,0,"epmd running - daemon = %d",g->is_daemon);
+ dbg_printf(g,1,"epmd running - daemon = %d",g->is_daemon);

#ifndef NO_SYSCONF
if ((g->max_conn = sysconf(_SC_OPEN_MAX)) <= 0)
--
1.5.4.3


________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Wed Aug 04, 2010 9:51 am Reply with quote
Guest
On Tue, Aug 3, 2010 at 7:26 PM, Michael Santos <michael.santos@gmail.com> wrote:
> Running transient distributed Erlang nodes can generate a large number
> of informational messages to syslog. Modify epmd to log the startup
> message only when passed the debug switch.

Thanks! Included in 'pu'.

--
Björn Gustavsson, Erlang/OTP, Ericsson AB

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Wed Aug 04, 2010 9:51 am Reply with quote
Guest
On Tue, Aug 3, 2010 at 7:26 PM, Michael Santos <michael.santos@gmail.com> wrote:
> Running transient distributed Erlang nodes can generate a large number
> of informational messages to syslog. Modify epmd to log the startup
> message only when passed the debug switch.

Thanks! Included in 'pu'.

--
Björn Gustavsson, Erlang/OTP, Ericsson AB

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum