Ver Fonte

modify:doc_export函数增加request_id

zhusc há 2 meses atrás
pai
commit
51c71d5b62
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -25,8 +25,8 @@ def doc_export(
         token: str = Path(title='doc token', description="文档的token")
 ):
     try:
-        # request_id = str(uuid.uuid4()) #request_id_context.get()
-        # logger.info(f"Request ID: {request_id}, Token: {token}")
+        request_id = str(uuid.uuid4()) #request_id_context.get()
+        logger.info(f"Request ID: {request_id}, Token: {token}")
         word_downloda_url = f_doc_export(token)
         if word_downloda_url:
             return BaseResponse.ofSuccess(word_downloda_url)