File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,11 @@ def __init__(self, config):
337337 """
338338 self ._config = config
339339
340+ # enable live logs if log_cli_level is explicitly set
341+ log_cli_level = get_actual_log_level (self ._config , 'log_cli_level' , 'log_level' )
342+ if log_cli_level is not None :
343+ # enable live logs if log_cli_level is explicitly set
344+ config ._inicache ['log_cli' ] = config ._parser ._inidict ['log_cli' ] = True
340345 # enable verbose output automatically if live logging is enabled
341346 if self ._config .getini ('log_cli' ) and not config .getoption ('verbose' ):
342347 # sanity check: terminal reporter should not have been loaded at this point
Original file line number Diff line number Diff line change 1+ Enable live logs is log_cli_level is passed/set explicitly
You can’t perform that action at this time.
0 commit comments