Add username to stream-events queue entries

When displaying the command queue, render the command as:

  "Stream Events (username)"

Rather than the current:

  com.google.gerrit.sshd.commands.StreamEvents$3@6ad4a0ea

Change-Id: I9649fa5b2dcdefc71656b2bf72848389fb77cbd5
This commit is contained in:
James E. Blair 2015-04-16 14:17:40 -07:00 committed by David Pursehouse
parent ca1e88f882
commit 81de6fcbe0

View File

@ -94,6 +94,11 @@ final class StreamEvents extends BaseCommand {
public void cancel() {
onExit(0);
}
@Override
public String toString() {
return "Stream Events (" + currentUser.getAccount().getUserName() + ")";
}
};
/** True if {@link #droppedOutputEvent} needs to be sent. */