zhangyong 7 tháng trước cách đây
mục cha
commit
1bbc4b2cc3
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      common/aliyun_log.py

+ 2 - 4
common/aliyun_log.py

@@ -46,10 +46,8 @@ class AliyunLogger:
         logstore = "rewriting-log"
         logstore = "rewriting-log"
         endpoint = "cn-hangzhou.log.aliyuncs.com"
         endpoint = "cn-hangzhou.log.aliyuncs.com"
         if data:
         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 = [
         contents = [
             ("principal", principal),
             ("principal", principal),
             ("channel", channel),
             ("channel", channel),