[LON-CAPA-cvs] cvs: loncom / LondConnection.pm

foxr lon-capa-cvs@mail.lon-capa.org
Tue, 21 Sep 2004 10:51:42 -0000


foxr		Tue Sep 21 06:51:42 2004 EDT

  Modified files:              
    /loncom	LondConnection.pm 
  Log:
  Time stamp socket dumps so I can make sense of what's going on.
  
  
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.34 loncom/LondConnection.pm:1.35
--- loncom/LondConnection.pm:1.34	Tue Sep 14 07:46:29 2004
+++ loncom/LondConnection.pm	Tue Sep 21 06:51:42 2004
@@ -1,7 +1,7 @@
 #   This module defines and implements a class that represents
 #   a connection to a lond daemon.
 #
-# $Id: LondConnection.pm,v 1.34 2004/09/14 11:46:29 foxr Exp $
+# $Id: LondConnection.pm,v 1.35 2004/09/21 10:51:42 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -154,14 +154,17 @@
 sub Dump {
     my $self   = shift;
     my $level  = shift;
+    my $now    = time;
+    my $local  = localtime($now);
     
     if ($level <= $DebugLevel) {
 	return;
     }
 
+    
     my $key;
     my $value;
-    print STDERR "Dumping LondConnectionObject:\n";
+    print STDERR "[ $local ] Dumping LondConnectionObject:\n";
     while(($key, $value) = each %$self) {
 	print STDERR "$key -> $value\n";
     }