5
5
from sap .cf_logging .record import application_info
6
6
from sap .cf_logging .record import util
7
7
8
-
9
8
_SKIP_ATTRIBUTES = ["type" , "written_at" , "written_ts" , "correlation_id" , "remote_user" , "referer" ,
10
9
"x_forwarded_for" , "protocol" , "method" , "remote_ip" , "request_size_b" ,
11
10
"remote_host" , "remote_port" , "request_received_at" , "direction" ,
15
14
16
15
class SimpleLogRecord (logging .LogRecord ):
17
16
""" SimpleLogRecord class holds data for user logged messages """
17
+
18
18
# pylint: disable=too-many-arguments,too-many-locals
19
19
20
20
def __init__ (self , extra , framework , * args , ** kwargs ):
@@ -32,8 +32,8 @@ def __init__(self, extra, framework, *args, **kwargs):
32
32
33
33
self .correlation_id = correlation_id or '-'
34
34
35
- self .extra = dict ((key , value ) for key , value in extra .items () \
36
- if key not in _SKIP_ATTRIBUTES ) if extra else {}
35
+ self .extra = dict ((key , value ) for key , value in extra .items ()
36
+ if key not in _SKIP_ATTRIBUTES ) if extra else {}
37
37
for key , value in self .extra .items ():
38
38
setattr (self , key , value )
39
39
0 commit comments