--- loncom/LondTransaction.pm 2004/06/01 10:06:52 1.7 +++ loncom/LondTransaction.pm 2005/06/16 22:33:45 1.8 @@ -1,7 +1,7 @@ # This module defines and implements a class that represents # a connection to a lond daemon. # -# $Id: LondTransaction.pm,v 1.7 2004/06/01 10:06:52 foxr Exp $ +# $Id: LondTransaction.pm,v 1.8 2005/06/16 22:33:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -300,10 +300,28 @@ sub getServer { Returns the remaining request text. =cut + sub getRequest { my $self = shift; return $self->{request}; } +=pod + +=item getLoggableRequest + + Use this top get what the request is when you don't want to spew + sensitive data into logs + +=cut + +sub getLoggableRequest { + my $self = shift; + my ($cmd,$subcmd)=split(':',$self->{request}); + if ($cmd eq 'encrypt') { + return "$cmd:$subcmd"; + } + return $cmd; +} 1;