ソースを参照

client: log non-fatal connection errors

Justin Tracey 4 ヶ月 前
コミット
a42cf8f157
1 ファイル変更7 行追加0 行削除
  1. 7 0
      src/bin/mgen-client.rs

+ 7 - 0
src/bin/mgen-client.rs

@@ -328,6 +328,13 @@ async fn socket_updater(
         let res = error_channel.recv().await.expect("Error channel closed");
         if let MessengerError::Fatal(e) = res {
             return e;
+        } else {
+            log!(
+                "{},{},error,{:?}",
+                str_params.user,
+                str_params.recipient,
+                res
+            );
         }
     }
 }