"vscode:/vscode.git/clone" did not exist on "ebeb5ddf733c04b425d5070efae9c3d23f64b078"
Commit 3fe315d8 authored by myhloli's avatar myhloli
Browse files

chore(magic_pdf): enhance license logging information

- Add license ID information to the log for better traceability
- Improve logging format to include both license ID and expiration date
parent f27320c2
...@@ -14,7 +14,8 @@ try: ...@@ -14,7 +14,8 @@ try:
from magic_pdf_ascend_plugin.model_plugin.ocr.paddleocr.ppocr_273_npu import ModifiedPaddleOCR from magic_pdf_ascend_plugin.model_plugin.ocr.paddleocr.ppocr_273_npu import ModifiedPaddleOCR
from magic_pdf_ascend_plugin.model_plugin.table.rapidtable.rapid_table_npu import RapidTableModel from magic_pdf_ascend_plugin.model_plugin.table.rapidtable.rapid_table_npu import RapidTableModel
license_key = load_license() license_key = load_license()
logger.info(f'Using Ascend Plugin Success, License expired at {license_key["payload"]["date"]["end_date"]}') logger.info(f'Using Ascend Plugin Success, License id is {license_key["payload"]["id"]},'
f' License expired at {license_key["payload"]["date"]["end_date"]}')
except Exception as e: except Exception as e:
if isinstance(e, ImportError): if isinstance(e, ImportError):
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment