From 8537e172519238365de1d2c84191a9eace066dd5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 6 Jul 2022 10:49:59 -0400 Subject: [PATCH] TOSQUASH: debug mode loglevel --- tractor/_root.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tractor/_root.py b/tractor/_root.py index 6ad84f1..c5b8f17 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -127,8 +127,7 @@ async def open_root_actor( "Debug mode is only supported for the `trio` backend!" ) - loglevel = log._default_loglevel = loglevel.upper() - assert loglevel + loglevel = (loglevel or log._default_loglevel).upper() log.get_console_log(loglevel) # make a temporary connection to see if an arbiter exists