Merge "Added cmdline information into fluentFormatter event message"
This commit is contained in:
commit
2d1aa7254b
@ -301,6 +301,7 @@ class FluentFormatter(logging.Formatter):
|
|||||||
self.hostname = socket.gethostname()
|
self.hostname = socket.gethostname()
|
||||||
except socket.error:
|
except socket.error:
|
||||||
self.hostname = None
|
self.hostname = None
|
||||||
|
self.cmdline = " ".join(sys.argv)
|
||||||
|
|
||||||
def formatException(self, exc_info, strip_newlines=True):
|
def formatException(self, exc_info, strip_newlines=True):
|
||||||
try:
|
try:
|
||||||
@ -324,6 +325,7 @@ class FluentFormatter(logging.Formatter):
|
|||||||
'module': record.module,
|
'module': record.module,
|
||||||
'funcname': record.funcName,
|
'funcname': record.funcName,
|
||||||
'process_name': record.processName,
|
'process_name': record.processName,
|
||||||
|
'cmdline': self.cmdline,
|
||||||
'hostname': self.hostname,
|
'hostname': self.hostname,
|
||||||
'traceback': None,
|
'traceback': None,
|
||||||
'error_summary': _get_error_summary(record)}
|
'error_summary': _get_error_summary(record)}
|
||||||
|
Loading…
Reference in New Issue
Block a user