diff options
author | Ben Pfaff <blp@nicira.com> | 2011-07-28 10:19:42 -0700 |
---|---|---|
committer | Justin Pettit <jpettit@nicira.com> | 2011-08-01 13:23:19 -0700 |
commit | c1a543a8d6d2847983b6b0defd1e19777da85715 (patch) | |
tree | 32c38ed3a899a4911e2337a0fe7e2f426bf23a83 /xenserver/etc_xapi.d_plugins_openvswitch-cfg-update | |
parent | 733a287e17bf3764bf31c9528c6b6d30aafdec5f (diff) |
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.
Diffstat (limited to 'xenserver/etc_xapi.d_plugins_openvswitch-cfg-update')
-rwxr-xr-x | xenserver/etc_xapi.d_plugins_openvswitch-cfg-update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update index bceccbf4..60cd7167 100755 --- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update +++ b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update @@ -215,7 +215,7 @@ def setControllerCfg(controller): "--", "set-manager", 'ssl:' + controller + ':6632']) def vswitchCfgQuery(action_args): - cmd = [vsctl, "--timeout=5", "-vANY:console:emer"] + action_args + cmd = [vsctl, "--timeout=5", "-vANY:console:off"] + action_args output = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate() if len(output) == 0 or output[0] == None: output = "" @@ -224,7 +224,7 @@ def vswitchCfgQuery(action_args): return output def vswitchCfgMod(action_args): - cmd = [vsctl, "--timeout=5", "-vANY:console:emer"] + action_args + cmd = [vsctl, "--timeout=5", "-vANY:console:off"] + action_args exitcode = subprocess.call(cmd) if exitcode != 0: raise XenAPIPlugin.Failure("VSWITCH_CONFIG_MOD_FAILURE", |