mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-05 08:06:15 +00:00
[dev] fix if self.trace_id is empty
This commit is contained in:
parent
1a901e947e
commit
0d6fe7033d
2 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,6 @@
|
|||
]
|
||||
},
|
||||
"memory_chat": {
|
||||
"memory_user_name": "用户",
|
||||
"clazz": "chat.memory_chat",
|
||||
"retrieve": "parse_params,load_profile,extract_time,es_similar,es_keyword,semantic_rank,fuse_rerank",
|
||||
"generation_model": "dashscope_generation",
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ class Logger(logging.Logger):
|
|||
func=None, extra=None, sinfo=None):
|
||||
if extra is None:
|
||||
extra = {}
|
||||
extra["trace_id"] = self.trace_id
|
||||
if self.trace_id:
|
||||
extra["trace_id"] = self.trace_id
|
||||
return super().makeRecord(name, level, fn, lno, msg, args, exc_info, func, extra, sinfo)
|
||||
|
||||
@classmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue