Selaa lähdekoodia

BDatagram: Remove error messages about failed send

Ambroz Bizjak 8 vuotta sitten
vanhempi
sitoutus
43ba4edc35
2 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  1. 0 1
      system/BDatagram_unix.c
  2. 0 3
      system/BDatagram_win.c

+ 0 - 1
system/BDatagram_unix.c

@@ -333,7 +333,6 @@ static void do_send (BDatagram *o)
             return;
         }
         
-        BLog(BLOG_ERROR, "send failed");
         report_error(o);
         return;
     }

+ 0 - 3
system/BDatagram_win.c

@@ -232,7 +232,6 @@ static void start_send (BDatagram *o)
         // send
         int res = o->fnWSASendMsg(o->sock, &o->send.msg, 0, NULL, &o->send.olap.olap, NULL);
         if (res == SOCKET_ERROR && WSAGetLastError() != WSA_IO_PENDING) {
-            BLog(BLOG_ERROR, "WSASendMsg failed (%d)", WSAGetLastError());
             report_error(o);
             return;
         }
@@ -240,7 +239,6 @@ static void start_send (BDatagram *o)
         // send
         int res = WSASendTo(o->sock, &buf, 1, NULL, 0, &o->send.sysaddr.addr.generic, o->send.sysaddr.len, &o->send.olap.olap, NULL);
         if (res == SOCKET_ERROR && WSAGetLastError() != WSA_IO_PENDING) {
-            BLog(BLOG_ERROR, "WSASendTo failed (%d)", WSAGetLastError());
             report_error(o);
             return;
         }
@@ -390,7 +388,6 @@ static void send_olap_handler (BDatagram *o, int event, DWORD bytes)
     o->send.data_busy = 0;
     
     if (event == BREACTOR_IOCP_EVENT_FAILED) {
-        BLog(BLOG_ERROR, "sending failed");
         report_error(o);
         return;
     }