Skip to content

Commit 0636f8b

Browse files
authored
Allow custom log levels (#14)
1 parent 35ff9af commit 0636f8b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

logtail/frame.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,7 @@ def _parse_custom_events(record, include_extra_attributes):
6262

6363

6464
def _levelname(level):
65-
return {
66-
'debug': 'debug',
67-
'info': 'info',
68-
'warning': 'warn',
69-
'error': 'error',
70-
'critical': 'critical',
71-
}[level.lower()]
72-
65+
return level.lower()
7366

7467
def _relative_to_main_module_if_possible(pathname):
7568
has_main_module = hasattr(__main__, '__file__')

0 commit comments

Comments
 (0)