zhangyong 7 달 전
부모
커밋
1bbc4b2cc3
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      common/aliyun_log.py

+ 2 - 4
common/aliyun_log.py

@@ -46,10 +46,8 @@ class AliyunLogger:
         logstore = "rewriting-log"
         endpoint = "cn-hangzhou.log.aliyuncs.com"
         if data:
-            try:
-                data = dict(item.split(":", 1) for item in data.split(",,"))
-            except ValueError as e:
-                print(f"Error processing item: {e}")
+            data = dict(item.split(":", 1) for item in data.split(",,"))
+
         contents = [
             ("principal", principal),
             ("channel", channel),