Always enable debug level logging if mode enabled
							parent
							
								
									abb00531d3
								
							
						
					
					
						commit
						ff3f5959e9
					
				|  | @ -103,13 +103,8 @@ async def open_root_actor( | ||||||
|         _default_arbiter_port, |         _default_arbiter_port, | ||||||
|     ) |     ) | ||||||
| 
 | 
 | ||||||
|     if loglevel is None: |  | ||||||
|         loglevel = log.get_loglevel() |  | ||||||
|     else: |  | ||||||
|         log._default_loglevel = loglevel |  | ||||||
|         log.get_console_log(loglevel) |  | ||||||
| 
 | 
 | ||||||
|     assert loglevel |     loglevel = (loglevel or log._default_loglevel).upper() | ||||||
| 
 | 
 | ||||||
|     if debug_mode and _spawn._spawn_method == 'trio': |     if debug_mode and _spawn._spawn_method == 'trio': | ||||||
|         _state._runtime_vars['_debug_mode'] = True |         _state._runtime_vars['_debug_mode'] = True | ||||||
|  | @ -124,7 +119,7 @@ async def open_root_actor( | ||||||
|             logging.getLevelName( |             logging.getLevelName( | ||||||
|                 # lul, need the upper case for the -> int map? |                 # lul, need the upper case for the -> int map? | ||||||
|                 # sweet "dynamic function behaviour" stdlib... |                 # sweet "dynamic function behaviour" stdlib... | ||||||
|                 loglevel.upper() |                 loglevel, | ||||||
|             ) > logging.getLevelName('PDB') |             ) > logging.getLevelName('PDB') | ||||||
|         ): |         ): | ||||||
|             loglevel = 'PDB' |             loglevel = 'PDB' | ||||||
|  | @ -134,6 +129,8 @@ async def open_root_actor( | ||||||
|             "Debug mode is only supported for the `trio` backend!" |             "Debug mode is only supported for the `trio` backend!" | ||||||
|         ) |         ) | ||||||
| 
 | 
 | ||||||
|  |     log.get_console_log(loglevel) | ||||||
|  | 
 | ||||||
|     # make a temporary connection to see if an arbiter exists |     # make a temporary connection to see if an arbiter exists | ||||||
|     arbiter_found = False |     arbiter_found = False | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue