Commit 02754647 authored by filatov's avatar filatov
Browse files

comment out log in pcap threads

parent f99d0782
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ void* pcap_layer::thread() {
  const u_char *pkt_data;
  unsigned char pkt_count = 0;

  loggers::get_instance().log(">>> pcap_layer::run");
//  loggers::get_instance().log(">>> pcap_layer::run");

  _running = TRUE;

@@ -206,7 +206,7 @@ void* pcap_layer::thread() {
      continue;
    }
    if(result < 0){
      loggers::get_instance().log("<<< pcap_layer::run: error %s", pcap_geterr(_device));
//      loggers::get_instance().log("<<< pcap_layer::run: error %s", pcap_geterr(_device));
      break;
    }

@@ -229,7 +229,7 @@ void* pcap_layer::thread() {
    write(_fd[1], &pkt_count, 1);pkt_count++;
  }
  _running = FALSE;
  loggers::get_instance().log("<<< pcap_layer::run");
//  loggers::get_instance().log("<<< pcap_layer::run");
  return NULL;
}

+4 −4
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ void* pcap_offline_layer::thread() {
  const u_char *pkt_data;
  unsigned char pkt_count = 0;

  loggers::get_instance().log(">>> pcap_offline_layer::run");
//  loggers::get_instance().log(">>> pcap_offline_layer::run");

  memset(&lh, 0, sizeof(lh));

@@ -171,9 +171,9 @@ void* pcap_offline_layer::thread() {
      if(lh.ts.tv_sec|lh.ts.tv_usec){
        long diff = timeval_diff(pkt_header->ts, lh.ts);
        if(diff > 0) {
          loggers::get_instance().log("<<< pcap_offline_layer::run: Wait %d msec", diff);
//          fprintf(stderr,"<<< pcap_offline_layer::run: Wait %d msec", diff);
          std::this_thread::sleep_for(std::chrono::milliseconds(diff));
          loggers::get_instance().log("<<< pcap_offline_layer::run: Wait done");
//          fprintf(stderr,"<<< pcap_offline_layer::run: Wait done");
        }
      }
    }
@@ -197,7 +197,7 @@ void* pcap_offline_layer::thread() {
    write(_fd[1], &pkt_count, 1);pkt_count++;
  }
  
  loggers::get_instance().log("<<< pcap_offline_layer::run");
//  loggers::get_instance().log("<<< pcap_offline_layer::run");
  return NULL;
}