mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
Merge ff840c162a
into b82af5b826
This commit is contained in:
commit
29c4656e32
2 changed files with 8 additions and 7 deletions
|
@ -36,7 +36,10 @@ class JsonFormatter(Formatter):
|
|||
}
|
||||
|
||||
if record.exc_info:
|
||||
json_record["stacktrace"] = self.formatException(record.exc_info)
|
||||
try:
|
||||
json_record["stacktrace"] = self.formatException(record.exc_info)
|
||||
except Exception as e:
|
||||
json_record["stacktrace"] = f"Error serializing stacktrace: {str(e)}"
|
||||
|
||||
return json.dumps(json_record)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue