@@ -30,7 +30,7 @@ class AuthType(Enum):
30
30
BASIC_AUTH = 1
31
31
KERBEROS_AUTH = 2
32
32
33
- # Defauls for the class
33
+ # Defaults for the class
34
34
__DEFAULT_HOST = [{'host' : 'localhost' , 'port' : 9200 }]
35
35
__DEFAULT_AUTH_USER = ''
36
36
__DEFAULT_AUTH_PASSWD = ''
@@ -97,8 +97,8 @@ def __init__(self,
97
97
self .flush_frequency_in_sec = flush_frequency_in_sec
98
98
self .es_index_name = es_index_name
99
99
self .es_doc_type = es_doc_type
100
- self .es_additional_fileds = es_additional_fields .copy ()
101
- self .es_additional_fileds .update ({'host' : socket .gethostname (),
100
+ self .es_additional_fields = es_additional_fields .copy ()
101
+ self .es_additional_fields .update ({'host' : socket .gethostname (),
102
102
'host_ip' : socket .gethostbyname (socket .gethostname ())})
103
103
self .raise_on_indexing_exceptions = raise_on_indexing_exceptions
104
104
@@ -199,7 +199,7 @@ def emit(self, record):
199
199
:param record: A class of type ```logging.LogRecord```
200
200
:return: None
201
201
"""
202
- rec = self .es_additional_fileds .copy ()
202
+ rec = self .es_additional_fields .copy ()
203
203
for k , v in record .__dict__ .items ():
204
204
if k not in CMRESHandler .__LOGGING_FILTER_FIELDS :
205
205
rec [k ] = "" if v is None else v
0 commit comments