Switch to new samskivert logging API.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5134 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-05-27 19:25:38 +00:00
parent 821760366f
commit 919112cf88
80 changed files with 440 additions and 573 deletions
@@ -29,7 +29,7 @@ import com.samskivert.util.StringUtil;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.util.PresentsContext;
import com.threerings.admin.Log;
import static com.threerings.admin.Log.log;
/**
* Used to display and edit a particular distributed object field.
@@ -89,7 +89,7 @@ public class AsStringFieldEditor extends FieldEditor
return new Boolean(_value.getText().equalsIgnoreCase("true"));
} else {
Log.warning("Unknown field type '" + _field.getName() + "': " +
log.warning("Unknown field type '" + _field.getName() + "': " +
_field.getType().getName() + ".");
return null;
}
@@ -30,7 +30,7 @@ import com.samskivert.swing.VGroupLayout;
import com.threerings.presents.util.PresentsContext;
import com.threerings.admin.Log;
import static com.threerings.admin.Log.log;
/**
* Fetches a list of the configuration objects in use by the server and
@@ -111,7 +111,7 @@ public class ConfigEditorPanel extends JPanel
// documentation inherited from interface
public void requestFailed (String reason)
{
Log.warning("Failed to get config info [reason=" + reason + "].");
log.warning("Failed to get config info [reason=" + reason + "].");
}
/** Our client context. */
@@ -32,10 +32,11 @@ import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.dobj.ObjectAccessException;
import com.threerings.presents.dobj.Subscriber;
import com.threerings.admin.Log;
import com.threerings.admin.data.AdminCodes;
import com.threerings.admin.data.ConfigObject;
import static com.threerings.admin.Log.log;
/**
* Handles subscribing to admin config objects.
*/
@@ -84,7 +85,7 @@ public class ConfigObjectManager implements AdminService.ConfigInfoListener
// documentation inherited from interface AdminService.ConfigInfoListener
public void requestFailed (String reason)
{
Log.warning("Oh bugger, we didn't get the config data: " + reason);
log.warning("Oh bugger, we didn't get the config data: " + reason);
}
/**
@@ -121,7 +122,7 @@ public class ConfigObjectManager implements AdminService.ConfigInfoListener
// documentation inherited from interface Subscriber
public void requestFailed (int oid, ObjectAccessException cause) {
Log.warning("Unable to subscribe to config object " + _key);
log.warning("Unable to subscribe to config object " + _key);
}
/**
@@ -40,7 +40,6 @@ import com.samskivert.util.ClassUtil;
import com.samskivert.util.ComparableArrayList;
import com.samskivert.util.ListUtil;
import com.threerings.presents.Log;
import com.threerings.presents.dobj.AttributeChangeListener;
import com.threerings.presents.dobj.AttributeChangedEvent;
import com.threerings.presents.dobj.DObject;
@@ -50,6 +49,8 @@ import com.threerings.presents.dobj.EntryRemovedEvent;
import com.threerings.presents.dobj.EntryUpdatedEvent;
import com.threerings.presents.dobj.SetListener;
import static com.threerings.presents.Log.log;
/**
* Allows simple editing of DSets within a distributed object.
*/
@@ -43,7 +43,7 @@ import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.ObjectAccessException;
import com.threerings.presents.util.PresentsContext;
import com.threerings.admin.Log;
import static com.threerings.admin.Log.log;
/**
* Used to display and edit a particular distributed object field.
@@ -107,7 +107,7 @@ public abstract class FieldEditor extends JPanel
try {
_object.changeAttribute(_field.getName(), value);
} catch (ObjectAccessException oae) {
Log.warning("Failed to update field " + _field.getName() +
log.warning("Failed to update field " + _field.getName() +
": "+ oae);
}
}
@@ -128,7 +128,7 @@ public abstract class FieldEditor extends JPanel
try {
dvalue = getDisplayValue();
} catch (Exception e) {
Log.warning("Failed to parse display value " + e + ".");
log.warning("Failed to parse display value " + e + ".");
displayValue(getValue());
}
updateBorder(!ObjectUtil.equals(dvalue, getValue()));
@@ -154,7 +154,7 @@ public abstract class FieldEditor extends JPanel
try {
return _field.get(_object);
} catch (Exception e) {
Log.warning("Failed to fetch field [field=" + _field +
log.warning("Failed to fetch field [field=" + _field +
", object=" + _object + ", error=" + e + "].");
return null;
}
@@ -37,9 +37,10 @@ import com.threerings.presents.dobj.Subscriber;
import com.threerings.presents.util.PresentsContext;
import com.threerings.presents.util.SafeSubscriber;
import com.threerings.admin.Log;
import com.threerings.admin.data.ConfigObject;
import static com.threerings.admin.Log.log;
/**
* Used to edit the distributed object fields of a particular
* configuration object. When the panel is first shown, it will subscribe
@@ -111,7 +112,7 @@ public class ObjectEditorPanel extends ScrollablePanel
}
} catch (SecurityException se) {
Log.warning("Unable to introspect DObject!? " + se);
log.warning("Unable to introspect DObject!? " + se);
}
SwingUtil.refresh(this);
@@ -120,7 +121,7 @@ public class ObjectEditorPanel extends ScrollablePanel
// documentation inherited from interface
public void requestFailed (int oid, ObjectAccessException cause)
{
Log.warning("Unable to subscribe to config object: " + cause);
log.warning("Unable to subscribe to config object: " + cause);
}
protected PresentsContext _ctx;
@@ -30,7 +30,7 @@ import com.samskivert.util.ObjectUtil;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.util.PresentsContext;
import com.threerings.admin.Log;
import static com.threerings.admin.Log.log;
/**
* Allows editing of a dobj field using a pulldown.
@@ -132,7 +132,7 @@ public class PulldownFieldEditor extends FieldEditor
}
// cause shit to blow up minorly
Log.warning("Value in dobj is not settable, disabling choice.");
log.warning("Value in dobj is not settable, disabling choice.");
Thread.dumpStack();
_value.setEnabled(false);
}