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

raeburn raeburn at source.lon-capa.org
Fri Oct 20 16:20:21 EDT 2017


raeburn		Fri Oct 20 20:20:21 2017 EDT

  Modified files:              
    /loncom	loncnew LondConnection.pm 
  Log:
  - Log hostID for completed deferred transactions in lonnet.perm.log.
  
  
Index: loncom/loncnew
diff -u loncom/loncnew:1.101 loncom/loncnew:1.102
--- loncom/loncnew:1.101	Tue Feb 28 05:42:06 2017
+++ loncom/loncnew	Fri Oct 20 20:20:20 2017
@@ -2,7 +2,7 @@
 # The LearningOnline Network with CAPA
 # lonc maintains the connections to remote computers
 #
-# $Id: loncnew,v 1.101 2017/02/28 05:42:06 raeburn Exp $
+# $Id: loncnew,v 1.102 2017/10/20 20:20:20 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -611,7 +611,7 @@
 	StartClientReply($Transaction, $data);
     } else {			# Delete deferred transaction file.
 	Log("SUCCESS", "A delayed transaction was completed");
-	LogPerm("S:".$Transaction->getClient().":".$Transaction->getRequest());
+	LogPerm("S:".$Socket->PeerLoncapaHim().":".$Transaction->getRequest());
 	unlink($Transaction->getFile());
     }
 }
Index: loncom/LondConnection.pm
diff -u loncom/LondConnection.pm:1.54 loncom/LondConnection.pm:1.55
--- loncom/LondConnection.pm:1.54	Tue Feb 28 05:42:06 2017
+++ loncom/LondConnection.pm	Fri Oct 20 20:20:21 2017
@@ -1,7 +1,7 @@
 #   This module defines and implements a class that represents
 #   a connection to a lond daemon.
 #
-# $Id: LondConnection.pm,v 1.54 2017/02/28 05:42:06 raeburn Exp $
+# $Id: LondConnection.pm,v 1.55 2017/10/20 20:20:21 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1194,6 +1194,15 @@
     return $self->{ClientData};
 }
 
+#
+# Get the HostID of our peer 
+#
+
+sub PeerLoncapaHim {
+    my $self = shift;
+    return $self->{LoncapaHim};
+}
+
 1;
 
 =pod




More information about the LON-CAPA-cvs mailing list