Browse Source

modify:doc_export函数增加request_id

zhusc 2 months ago
parent
commit
16375bf4c5
1 changed files with 2 additions and 2 deletions
  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)