From aa44d90aabf6388ad3de6c155dc9ea614e672b49 Mon Sep 17 00:00:00 2001 From: Jamie Doornbos Date: Fri, 7 Nov 2008 18:40:14 +0000 Subject: [PATCH] Fixed log warning for failed persistence. It was not logging the exception in the correct slot and was using the name of the unit in the message rather than in brackets. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5518 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/util/PersistingUnit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/util/PersistingUnit.java b/src/java/com/threerings/presents/util/PersistingUnit.java index 048c529c5..f36aa6593 100644 --- a/src/java/com/threerings/presents/util/PersistingUnit.java +++ b/src/java/com/threerings/presents/util/PersistingUnit.java @@ -71,7 +71,7 @@ public abstract class PersistingUnit extends Invoker.Unit if (error instanceof InvocationException) { _listener.requestFailed(error.getMessage()); } else { - log.warning(getFailureMessage(), error); + log.warning("Unit threw an exception", "message", getFailureMessage(), error); _listener.requestFailed(InvocationCodes.INTERNAL_ERROR); } }