Switch to new logging API.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@608 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-05-27 20:00:28 +00:00
parent 3b7ef57a20
commit a133c7c693
91 changed files with 486 additions and 722 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
package com.threerings.stats;
import java.util.logging.Logger;
import com.samskivert.util.Logger;
/**
* A placeholder class that contains a reference to the log object used by this project.
@@ -103,7 +103,7 @@ public class StatRepository extends DepotRepository
updateStat(playerId, stats[ii]);
}
} catch (Exception e) {
log.log(Level.WARNING, "Error flushing modified stat [stat=" + stats[ii] + "].", e);
log.warning("Error flushing modified stat [stat=" + stats[ii] + "].", e);
}
}
}
@@ -120,7 +120,7 @@ public class StatRepository extends DepotRepository
try {
code = assignStringCode(type, value);
} catch (PersistenceException pe) {
log.log(Level.WARNING, "Failed to assign code [type=" + type +
log.warning("Failed to assign code [type=" + type +
", value=" + value + "].", pe);
// at this point the database is probably totally hosed, so we can just punt here,
// and assume that this value will never be persisted
@@ -142,7 +142,7 @@ public class StatRepository extends DepotRepository
try {
loadStringCodes(type);
} catch (PersistenceException pe) {
log.log(Level.WARNING, "Failed to reload string codes " +
log.warning("Failed to reload string codes " +
"[type=" + type + ", code=" + code + "].", pe);
}
map = _codeToString.get(type);
@@ -200,7 +200,7 @@ public class StatRepository extends DepotRepository
errmsg = "Unable to decode stat";
}
log.log(Level.WARNING, errmsg + " [type=" + stat.getType() + "]", error);
log.warning(errmsg + " [type=" + stat.getType() + "]", error);
return null;
}