|
5 | 5 | from sentry_sdk import get_client, get_current_scope |
6 | 6 |
|
7 | 7 |
|
8 | | -def capture_log(severity_text, severity_number, template, **kwargs): |
| 8 | +def _capture_log(severity_text, severity_number, template, **kwargs): |
9 | 9 | # type: (str, int, str, **Any) -> None |
10 | 10 | client = get_client() |
11 | 11 | scope = get_current_scope() |
12 | 12 | client.capture_log(scope, severity_text, severity_number, template, **kwargs) |
13 | 13 |
|
14 | 14 |
|
15 | | -trace = functools.partial(capture_log, "trace", 1) |
16 | | -debug = functools.partial(capture_log, "debug", 5) |
17 | | -info = functools.partial(capture_log, "info", 9) |
18 | | -warn = functools.partial(capture_log, "warn", 13) |
19 | | -error = functools.partial(capture_log, "error", 17) |
20 | | -fatal = functools.partial(capture_log, "fatal", 21) |
| 15 | +trace = functools.partial(_capture_log, "trace", 1) |
| 16 | +debug = functools.partial(_capture_log, "debug", 5) |
| 17 | +info = functools.partial(_capture_log, "info", 9) |
| 18 | +warn = functools.partial(_capture_log, "warn", 13) |
| 19 | +error = functools.partial(_capture_log, "error", 17) |
| 20 | +fatal = functools.partial(_capture_log, "fatal", 21) |
0 commit comments