#1021: fix a bug to allow basicConfig to accept NOTSET as a level.
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 4fd582c..39ffae7 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1247,7 +1247,7 @@
         hdlr.setFormatter(fmt)
         root.addHandler(hdlr)
         level = kwargs.get("level")
-        if level:
+        if level is not None:
             root.setLevel(level)
 
 #---------------------------------------------------------------------------