2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-23 14:57:06 +00:00

vlog: Add a new log level "off".

Until now, "emer" has effectively been "off" because no messages were ever
logged at "emer" level.  Justin points out that it is useful to use "emer"
for messages that indicate a fatal error.  This commit makes that change
and adds a new "off" level to really turn off all logging to a facility.
This commit is contained in:
Ben Pfaff
2011-07-28 10:19:42 -07:00
committed by Justin Pettit
parent 733a287e17
commit c1a543a8d6
17 changed files with 58 additions and 52 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2007-2010 Citrix Systems Inc.
# Copyright (c) 2007-2011 Citrix Systems Inc.
# Copyright (c) 2009,2010,2011 Nicira Networks.
#
# This program is free software; you can redistribute it and/or modify
@@ -86,7 +86,7 @@ class VSwitchConfig:
@staticmethod
def Get(action):
try:
arg = [vsctl, "--timeout=30", "-vANY:console:emer"] + action.split()
arg = [vsctl, "--timeout=30", "-vANY:console:off"] + action.split()
output = ShellPipe(arg).Stdout()
except StandardError, e:
XSLogError("config retrieval error: " + str(e))