A bunch of python files in rpc and scripts directories were missing two blank lines after the opening comments. python3-pycodestyle-2.5.0-2.el8 was unhappy with this Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: Iee7f2bd4f0ddd96b2be89949a3aa324b2f9ea43a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16003 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
71 lines
1.4 KiB
Python
71 lines
1.4 KiB
Python
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2017 Intel Corporation.
|
|
# All rights reserved.
|
|
|
|
|
|
def log_set_flag(client, flag):
|
|
"""Set log flag.
|
|
|
|
Args:
|
|
flag: log flag we want to set. (for example "nvme")
|
|
"""
|
|
params = {'flag': flag}
|
|
return client.call('log_set_flag', params)
|
|
|
|
|
|
def log_clear_flag(client, flag):
|
|
"""Clear log flag.
|
|
|
|
Args:
|
|
flag: log flag we want to clear. (for example "nvme")
|
|
"""
|
|
params = {'flag': flag}
|
|
return client.call('log_clear_flag', params)
|
|
|
|
|
|
def log_get_flags(client):
|
|
"""Get log flags
|
|
|
|
Returns:
|
|
List of log flags
|
|
"""
|
|
return client.call('log_get_flags')
|
|
|
|
|
|
def log_set_level(client, level):
|
|
"""Set log level.
|
|
|
|
Args:
|
|
level: log level we want to set. (for example "DEBUG")
|
|
"""
|
|
params = {'level': level}
|
|
return client.call('log_set_level', params)
|
|
|
|
|
|
def log_get_level(client):
|
|
"""Get log level
|
|
|
|
Returns:
|
|
Current log level
|
|
"""
|
|
return client.call('log_get_level')
|
|
|
|
|
|
def log_set_print_level(client, level):
|
|
"""Set log print level.
|
|
|
|
Args:
|
|
level: log print level we want to set. (for example "DEBUG")
|
|
"""
|
|
params = {'level': level}
|
|
return client.call('log_set_print_level', params)
|
|
|
|
|
|
def log_get_print_level(client):
|
|
"""Get log print level
|
|
|
|
Returns:
|
|
Current log print level
|
|
"""
|
|
return client.call('log_get_print_level')
|