prefect.logging.filters
ObfuscateApiKeyFilter
Bases: Filter
A logging filter that obfuscates any string that matches the obfuscate_string function.
Source code in src/prefect/logging/filters.py
29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
redact_substr(obj, substr)
Redact a string from a potentially nested object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj
|
Any
|
The object to redact the string from |
required |
substr
|
str
|
The string to redact. |
required |
Returns:
Name | Type | Description |
---|---|---|
Any |
The object with the API key redacted. |
Source code in src/prefect/logging/filters.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|