Skip to content

Commit

Permalink
added toString for these events so they show up properly in the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Werges committed Jun 12, 2012
1 parent 0034969 commit 575489b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,10 @@ public boolean requiresReliableTransmission()
return true;
}

public String toString()
{
return String.format("[isObj:%b,isCreate:%b,sizeMegs:%d,ownerId:%s,ownerName:%s,accountId:%s,accountName:%s]",
objectOrBucket, createOrDelete, sizeMegs, ownerId, ownerName, accountId, accountName);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,10 @@ public boolean requiresReliableTransmission()
return true;
}

public String toString()
{
return String.format("[type:%s,isCreate:%b,sizeMegs:%d,ownerId:%s,ownerName:%s,accountId:%s,accountName:%s,clusterName:%s,zone:%s]",
eventType, createOrDelete, sizeMegs, ownerId, ownerName, accountId, accountName, clusterName, availabilityZone);
}

}

0 comments on commit 575489b

Please sign in to comment.