Re: [ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-28 Thread Ben Pfaff
On Wed, Feb 27, 2013 at 07:20:07PM -0800, Andy Zhou wrote: > > vlog.py currently generates the same log messages, starts with the time stamp > information, for console, syslog and file. All messages start with current > time stamp information. > > Syslogd, by default, prepends time stamp with eac

Re: [ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-27 Thread Ben Pfaff
On Wed, Feb 27, 2013 at 07:20:07PM -0800, Andy Zhou wrote: > > vlog.py currently generates the same log messages, starts with the time stamp > information, for console, syslog and file. All messages start with current > time stamp information. > > Syslogd, by default, prepends time stamp with eac

Re: [ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-27 Thread Reid Price
LGTM. Thanks for fixes -Reid PS: One parting shot, I assume there's no constant for "syslog" elsewhere in the code =) On Wed, Feb 27, 2013 at 7:20 PM, Andy Zhou wrote: > > vlog.py currently generates the same log messages, starts with the time stamp > information, for console, syslog and fi

Re: [ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-27 Thread Andy Zhou
Thanks, I just sent the reworked patch On Wed, Feb 27, 2013 at 6:29 PM, Reid Price wrote: > Seems reasonable. A few suggestions: > > > > syslog_message = ("%s|%s|%s|%s" > >% (Vlog.__msg_num, self.name, level, message)) > > Fix indent. It looks like you should be able to line up %

Re: [ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-27 Thread Andy Zhou
vlog.py currently generates the same log messages, starts with the time stamp information, for console, syslog and file. All messages start with current time stamp information. Syslogd, by default, prepends time stamp with each message already. Thus the time stamp generated by vlog.py is redundan

Re: [ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-27 Thread Reid Price
Seems reasonable. A few suggestions: > syslog_message = ("%s|%s|%s|%s" >% (Vlog.__msg_num, self.name, level, message)) Fix indent. It looks like you should be able to line up % under the first " still without going over 80. > message = syslog_message; Drop the semicolon =) > m

[ovs-dev] [PATCH] python: Do not include time stamp in syslog messages.

2013-02-27 Thread Andy Zhou
vlog.py currently generates the same log messages, starts with the time stamp information, for console, syslog and file. All messages start with current time stamp information. Syslogd, by default, prepends time stamp with each message already. Thus the time stamp generated by vlog.py is redundant