Sfoglia il codice sorgente

清仓程序的错误日志上报清理

JiahengHe 4 mesi fa
parent
commit
b4222c4cce
1 ha cambiato i file con 2 aggiunte e 21 eliminazioni
  1. 2 21
      global/src/clear_log_utils.rs

+ 2 - 21
global/src/clear_log_utils.rs

@@ -45,27 +45,8 @@ where
     }
 }
 
-pub fn send_remote_err_log(msg: String) {
-    tokio::spawn(async move {
-        let encoded_str = base64::encode(msg.clone());
-        let mut request_json_data = HashMap::new();
-        request_json_data.insert("serverName", "As");
-        request_json_data.insert("data", encoded_str.as_str());
-
-        let res = Client::new().post("https://hhh.liangjiang.cc/api/log/addError?key=d64a8sc874sa8c4as5")
-            .json(&request_json_data)
-            .send()
-            .await;
-
-        match res {
-            Ok(_resp) => {
-                // let body = _resp.text().await.unwrap();
-            }
-            Err(err) => {
-                warn!("log的error监听器发送远端报错失败:{:?}", err);
-            }
-        }
-    });
+pub fn send_remote_err_log(_msg: String) {
+
 }
 
 pub fn init_log_with_debug() {