Skip to content

Commit 89495bf

Browse files
committed
Fixing docstring
1 parent 30a275d commit 89495bf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
class TelemetryConstants:
8+
"""Telemetry Constants."""
9+
810
APP_INSIGHT_HANDLER_NAME = "AppInsightsHandler"
911
NON_PII_MESSAGE = '[Hidden as it may contain PII]'
1012

assets/evaluation_on_cloud/environments/evaluations-built-in/context/online_eval/logging_utilities.py

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

44
"""Logging utilities for the evaluator."""
55

6-
76
from azure.ml.component.run import CoreRun
87
import platform
98

@@ -235,6 +234,7 @@ def format(self, record: logging.LogRecord) -> str:
235234

236235
class CustomLogRecord(logging.LogRecord):
237236
"""Custom Log Record class for App Insights."""
237+
238238
def __init__(self, *args, **kwargs):
239239
"""__init__."""
240240
super().__init__(*args, **kwargs)
@@ -243,7 +243,7 @@ def __init__(self, *args, **kwargs):
243243

244244
# Step 2: Set the custom LogRecord factory
245245
def custom_log_record_factory(*args, **kwargs):
246-
"""Custom Log Record Factory for App Insights."""
246+
"""Get CustomLogRecord for App Insights."""
247247
return CustomLogRecord(*args, **kwargs)
248248

249249

0 commit comments

Comments
 (0)