Skip to content

Commit e588b24

Browse files
unexclude _logging folder (#34009)
1 parent 296ce9b commit e588b24

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_logging/debug_mode.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
# pylint: disable=protected-access
66

7+
import http.client
78
import logging
89
import os
910
import sys
@@ -12,8 +13,6 @@
1213
from collections import namedtuple
1314
from typing import List, Optional
1415

15-
import http.client
16-
1716
LOG_FILE = os.path.abspath("azureml.log")
1817
LOG_FORMAT = "%(asctime)s|%(name)s|%(levelname)s|%(message)s"
1918
INTERESTING_NAMESPACES = ["azureml", "msrest.http_logger", "urllib2", "azure"]
@@ -157,6 +156,6 @@ def debug_sdk() -> None:
157156
# We do the below for strange environments like Revo + Jupyter
158157
# where root handlers appear to already be set.
159158
# We don't want to spew to those consoles with DEBUG emissions
160-
n_logger.propagate = 0
159+
n_logger.propagate = 0 # type: ignore[assignment]
161160

162161
_debugging_enabled = True

sdk/ml/azure-ai-ml/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ exclude = [
2929
"tests",
3030
"setup.py",
3131
"samples",
32-
"azure/ai/ml/_logging/",
3332
"azure/ai/ml/_utils",
3433
"azure/ai/ml/exceptions.py",
3534
"azure/ai/ml/_exception_helper.py",

0 commit comments

Comments
 (0)