| Author |
Message |
|
| Guest |
Posted: Mon Aug 02, 2010 10:20 am |
|
|
|
Guest
|
Hello.
Description
----------------
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.
Environment
------------------
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:
http://www.erlang.org/cgi-bin/ezmlm-cgi?4:sss:50616:201004:gpmnkdkhkkmnlcghliek#b
Thanks.
--
Sergey Samokhin
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Aug 03, 2010 1:45 pm |
|
|
|
Guest
|
On Mon, Aug 02, 2010 at 02:19:02PM +0400, Sergey Samokhin wrote:
> 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.
> There was similar letter some month ago:
> http://www.erlang.org/cgi-bin/ezmlm-cgi?4:sss:50616:201004:gpmnkdkhkkmnlcghliek#b
Is the pid of the epmd process changing? Do you have more than one
epmd running? Check ps and netstat for port 4369.
For example, I can reproduce this behaviour by running "epmd" in one
shell and trying to start a second epmd in another shell.
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Aug 03, 2010 2:08 pm |
|
|
|
Guest
|
> Is the pid of the epmd process changing? Do you have more than one
> epmd running? Check ps and netstat for port 4369.
pid of epmd isn't changed and I have only one epmd running.
Every "erl -sname foo -run init stop" adds one "epmd running - daemon
= 1" to the errors.log
Steps to reproduce are quite easy (have just tested on clear virtual machine)
1. Install Erlang R13B04
2. Do "erl -sname foo -run init stop" N times
3. Take a look at "sudo cat /var/log/errors.log"; you will see N "epmd
running - daemon = 1" messages
--
Sergey Samokhin
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Aug 03, 2010 2:33 pm |
|
|
|
Guest
|
On Tue, Aug 03, 2010 at 06:05:41PM +0400, Sergey Samokhin wrote:
> > Is the pid of the epmd process changing? Do you have more than one
> > epmd running? Check ps and netstat for port 4369.
>
> pid of epmd isn't changed and I have only one epmd running.
>
> Every "erl -sname foo -run init stop" adds one "epmd running - daemon
> = 1" to the errors.log
>
> Steps to reproduce are quite easy (have just tested on clear virtual machine)
>
> 1. Install Erlang R13B04
> 2. Do "erl -sname foo -run init stop" N times
> 3. Take a look at "sudo cat /var/log/errors.log"; you will see N "epmd
> running - daemon = 1" messages
Thanks! I understand the issue now.
You suggested in your first email using LOG_INFO, but do you think this
patch would be sufficient? epmd will log (at LOG_ERR) only when one or
more "-d" flags are passed.
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
@@ -237,5 +237,5 @@ int main(int argc, char** argv)
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
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Aug 03, 2010 3:52 pm |
|
|
|
Guest
|
Hello, Michael!
> You suggested in your first email using LOG_INFO, but do you think this
> patch would be sufficient? epmd will log (at LOG_ERR) only when one or
> more "-d" flags are passed.
I have just tested your patch in VirtualBox, it is completely
sufficient! No more annoying messages in errors.log (untill -d is
specified, as you said)!
Big thanks! I would be very happy to see this patch in the next Erlang release!
--
Sergey Samokhin
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Aug 03, 2010 4:44 pm |
|
|
|
Guest
|
On Tue, Aug 03, 2010 at 07:51:22PM +0400, Sergey Samokhin wrote:
> Hello, Michael!
>
> > You suggested in your first email using LOG_INFO, but do you think this
> > patch would be sufficient? epmd will log (at LOG_ERR) only when one or
> > more "-d" flags are passed.
>
> I have just tested your patch in VirtualBox, it is completely
> sufficient! No more annoying messages in errors.log (untill -d is
> specified, as you said)!
>
> Big thanks! I would be very happy to see this patch in the next Erlang release!
Awesome! I will submit the patch to erlang-patches later today.
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| wuji |
Posted: Fri Aug 24, 2012 7:10 am |
|
|
|
User
Joined: 10 Aug 2012
Posts: 654
|
and may not be hospitalized, according to Galynker. There may may cheap authentic jordans may be short periods of being hypermanic alternating with deep
the down swing is the same and people spend more more cheap Ralph Lauren more time depressed than manic," he said.Eating habits do change
people with bipolar disorder and they may binge eat and and imitation designer *beep* and gain weight. "It's conceivable somebody, in addition, that a
like that who is on meds could gain a lot lot cheap real jordans lot of weight," said Galynker.Bipolar Medications Can Cause Weight GainMedications |
|
|
| Back to top |
|
|
|