Switch to new logging API.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@510 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -30,6 +30,8 @@ import java.net.URL;
|
||||
import java.security.AccessControlException;
|
||||
import java.util.HashSet;
|
||||
|
||||
import static com.threerings.resource.Log.log;
|
||||
|
||||
/**
|
||||
* Resource bundle that retrieves its contents via HTTP over the network from a root URL.
|
||||
*/
|
||||
@@ -48,7 +50,7 @@ public class NetworkResourceBundle extends ResourceBundle
|
||||
try {
|
||||
_bundleURL = new URL(root + path);
|
||||
} catch (MalformedURLException mue) {
|
||||
Log.warning("Created malformed URL for resource. [root=" + root + ", path=" + path);
|
||||
log.warning("Created malformed URL for resource. [root=" + root + ", path=" + path);
|
||||
}
|
||||
_ident = path;
|
||||
|
||||
@@ -75,7 +77,7 @@ public class NetworkResourceBundle extends ResourceBundle
|
||||
try {
|
||||
ucon = (HttpURLConnection) resourceUrl.openConnection();
|
||||
} catch (IOException ioe) {
|
||||
Log.warning("Unable to open connection [url=" + resourceUrl + ", ex=" + ioe + "]");
|
||||
log.warning("Unable to open connection [url=" + resourceUrl + ", ex=" + ioe + "]");
|
||||
}
|
||||
|
||||
if (ucon == null) {
|
||||
@@ -85,10 +87,10 @@ public class NetworkResourceBundle extends ResourceBundle
|
||||
ucon.connect();
|
||||
return ucon.getInputStream();
|
||||
} catch (IOException ioe) {
|
||||
Log.warning("Unable to open input stream [url=" + resourceUrl + ", ex=" + ioe + "]");
|
||||
log.warning("Unable to open input stream [url=" + resourceUrl + ", ex=" + ioe + "]");
|
||||
return null;
|
||||
} catch (AccessControlException ace) {
|
||||
Log.warning("Unable to connect due to access permissions [url=" + resourceUrl + "]");
|
||||
log.warning("Unable to connect due to access permissions [url=" + resourceUrl + "]");
|
||||
throw ace;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user