MasterJH5574 commented on code in PR #13006:
URL: https://github.com/apache/tvm/pull/13006#discussion_r995886681


##########
python/tvm/meta_schedule/logging.py:
##########
@@ -129,7 +133,7 @@ def create_loggers(
             "class": "logging.FileHandler",
             "filename": "{log_dir}/" + __name__ + ".task_scheduler.log",
             "mode": "a",
-            "level": "INFO",
+            "level": "DEBUG",

Review Comment:
   Should we change line 114 to `"DEBUG"` as well?



##########
python/tvm/meta_schedule/logging.py:
##########
@@ -93,13 +93,16 @@ def create_loggers(
 
     global_logger_name = "tvm.meta_schedule"
     global_logger = logging.getLogger(global_logger_name)
+    console_logging_level = logging._levelToName[  # pylint: 
disable=protected-access
+        global_logger.level
+    ]

Review Comment:
   If `global_logger.level` is `NOTSET` at this moment, `console_logging_level` 
will be a dash `"-"` and will be used on line 127. Just curious that if this is 
as expected.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to