numam-spdk/scripts/rpc/log.py
Daniel Verkamp 96dc91d608 scripts/rpc.py: pass client as separate parameter
Split client out of the args object and pass it as the first parameter
to all RPC methods instead.  This is a step toward decoupling the
rpc/*.py interface from the argparse front end.

Change-Id: Ib030862e0c79112e5c9acdde295d68983126a987
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/405502
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-03-30 16:48:47 -04:00

31 lines
727 B
Python
Executable File

def set_trace_flag(client, args):
params = {'flag': args.flag}
return client.call('set_trace_flag', params)
def clear_trace_flag(client, args):
params = {'flag': args.flag}
return client.call('clear_trace_flag', params)
def get_trace_flags(client, args):
return client.call('get_trace_flags')
def set_log_level(client, args):
params = {'level': args.level}
return client.call('set_log_level', params)
def get_log_level(client, args):
return client.call('get_log_level')
def set_log_print_level(client, args):
params = {'level': args.level}
return client.call('set_log_print_level', params)
def get_log_print_level(client, args):
return client.call('get_log_print_level')