Commit 7f1a1137 authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Eliminated need to pass explicit value after --log-request-times option.

parent 2f297077
......@@ -59,8 +59,8 @@ class Conf():
add('--test-disable-sync', type=strtobool, env_var='TEST_DISABLE_SYNC', help='(debug) skip sync and sweep; jump to block streaming', default=False)
add('--test-max-block', type=int, env_var='TEST_MAX_BLOCK', help='(debug) only sync to given block, for running sync test', default=None)
add('--test-profile', type=strtobool, env_var='TEST_PROFILE', help='(debug) profile execution', default=False)
add('--log-request-times', type=strtobool, env_var='LOG_REQUEST_TIMES', help='(debug) allows to generate log containing request processing times', default=False)
add('--log-virtual-op-calls', type=strtobool, env_var='LOG_VIRTUAL_OP_CALLS', help='(debug) log virtual op calls and responses', default=False)
add('--log-request-times', env_var='LOG_REQUEST_TIMES', help='(debug) allows to generate log containing request processing times', action='store_true')
add('--log-virtual-op-calls', env_var='LOG_VIRTUAL_OP_CALLS', help='(debug) log virtual op calls and responses', default=False)
add('--mock-block-data-path', type=str, nargs='+', env_var='MOCK_BLOCK_DATA_PATH', help='(debug/testing) load additional data from block data file')
add('--mock-vops-data-path', type=str, env_var='MOCK_VOPS_DATA_PATH', help='(debug/testing) load additional data from virtual operations data file')
add('--community-start-block', type=int, env_var='COMMUNITY_START_BLOCK', default=37500000)
......
......@@ -205,7 +205,7 @@ def run_server(conf):
req_res_log = None
if conf.get('LOG_REQUEST_TIMES'):
if conf.get('log_request_times'):
req_res_log = logging.getLogger("Request-Process-Time-Logger")
conf_stdout_custom_file_logger(req_res_log, "./request_process_times.log")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment