[ovs-dev] Problem with Log Levels

Saleha Asad salehageti at gmail.com
Wed Nov 14 04:58:38 UTC 2012


I saw this command in a legacy script being used by an older version of
OVS. I just had a look at the man page it says that the "For compatibility
with older versions of OVS, *any* is accepted as a word but has no effect",
so I now modified my command according to the man page and used the
following.

ovs-vsctl vlog/set file:off
ovs-vsctl vlog/set syslog:off
ovs-vsctl vlog/set console:dbg

This turns off the log messages for file and syslog and sets the log level
of console to dbg. But still after using these commands I am unable to see
any OVS log messages on my console. For example when I used the command

ovs-vsctl add-port br1 gre0 -- set interface gre0 type=gre
options:remote_ip=abc

I should see a warning on the console

|WARN|gre0: bad gre 'remote_ip'
|ERR|gre0: gre type requires valid 'remote_ip' argument

As this is the error I get in the log file when the log messages for file
are turned on but I am unable to see anything on the console.


On Tue, Nov 13, 2012 at 8:26 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Tue, Nov 13, 2012 at 01:27:36PM +0500, Saleha Asad wrote:
> > I am running open-vswitch-1.7.1 on x86. I want to set the log level so
> that
> > all the error messages are printed to the console. For this I am using
> the
> > command:
> > ovs-appctl vlog/set ANY:ANY:OFF
> >
> > From this command what I understand is that it will show all the error
> > messages on console and in syslog and will turn off the log messages for
> > file. [...]
>
> That is wrong, and I can't figure out why you think that.  Why do you
> think that this will have that effect?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20121114/16d74dd1/attachment-0003.html>


More information about the dev mailing list