Explorar el Código

more compact verbose debugging

Darren Ranalli hace 19 años
padre
commit
79eb6d81bc
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      direct/src/distributed/cConnectionRepository.cxx

+ 5 - 4
direct/src/distributed/cConnectionRepository.cxx

@@ -236,7 +236,7 @@ check_datagram() {
   #endif //WANT_NATIVE_NET
   while (do_check_datagram()) { //Read a datagram
     if (get_verbose()) {
-      describe_message(nout, "RECV ", _dg.get_message());
+      describe_message(nout, "RECV", _dg.get_message());
     }
 
     // Start breaking apart the datagram.
@@ -361,7 +361,7 @@ send_datagram(const Datagram &dg) {
   }
 
   if (get_verbose()) {
-    describe_message(nout, "SEND ", dg.get_message());
+    describe_message(nout, "SEND", dg.get_message());
   }
 
 #ifdef WANT_NATIVE_NET
@@ -772,8 +772,9 @@ describe_message(ostream &out, const string &prefix,
           << ", field " << field_id << "\n";
 
     } else {
-      out << full_prefix << "update for " << do_id << "(" << dclass->get_name()
-          << "): ";
+      out << full_prefix <<
+        ":" << do_id <<
+        ":" << dclass->get_name() << ".";
       DCField *field = dclass->get_field_by_index(field_id);
       if (field == (DCField *)NULL) {
         out << "unknown field " << field_id << "\n";