Sfoglia il codice sorgente

remove ujson logger (#2299)

zhangyubo0722 1 anno fa
parent
commit
f5532e95d7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      paddlex/utils/file_interface.py

+ 1 - 1
paddlex/utils/file_interface.py

@@ -25,7 +25,7 @@ import chardet
 try:
     import ujson as json
 except:
-    logging.error("failed to import ujson, using json instead")
+    logging.warning("failed to import ujson, using json instead")
     import json
 
 from contextlib import contextmanager