You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: logging_loki/handlers.py
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,8 @@ def __init__(
70
70
as_json: Optional[bool] =False,
71
71
props_to_labels: Optional[list[str]] =None,
72
72
level_tag: Optional[str] =const.level_tag,
73
-
logger_tag: Optional[str] =const.logger_tag
73
+
logger_tag: Optional[str] =const.logger_tag,
74
+
verify: Union[bool, str] =True
74
75
):
75
76
"""
76
77
Create new Loki logging handler.
@@ -84,10 +85,11 @@ def __init__(
84
85
props_to_labels: List of properties that should be converted to loki labels.
85
86
level_tag: Label name indicating logging level.
86
87
logger_tag: Label name indicating logger name.
88
+
verify: Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use.
0 commit comments