|
|
@@ -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() {
|