mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
bind/java: use standard Java Logger
Change-Id: I47c9ba45d3c366821856c1a28bb945ed11b6e18a Reviewed-on: https://go-review.googlesource.com/17234 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
+6
-4
@@ -6,16 +6,18 @@ package go;
|
||||
|
||||
import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
// Seq is a sequence of machine-dependent encoded values.
|
||||
// Used by automatically generated language bindings to talk to Go.
|
||||
public class Seq {
|
||||
private static Logger log = Logger.getLogger("GoSeq");
|
||||
|
||||
static {
|
||||
// Look for the shim class auto-generated by gomobile bind.
|
||||
// Its only purpose is to call System.loadLibrary.
|
||||
@@ -23,7 +25,7 @@ public class Seq {
|
||||
Class.forName("go.LoadJNI");
|
||||
} catch (ClassNotFoundException e) {
|
||||
// Ignore, assume the user will load JNI for it.
|
||||
Log.w("GoSeq", "LoadJNI class not found");
|
||||
log.warning("LoadJNI class not found");
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -33,7 +35,7 @@ public class Seq {
|
||||
setContext(ctx);
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.w("GoSeq", "Global context not found:" + e);
|
||||
log.warning("Global context not found: " + e);
|
||||
}
|
||||
|
||||
initSeq();
|
||||
@@ -254,7 +256,7 @@ public class Seq {
|
||||
if (refnum <= 0) {
|
||||
// We don't keep track of the Go object.
|
||||
// This must not happen.
|
||||
Log.wtf("GoSeq", "dec request for Go object "+ refnum);
|
||||
log.severe("dec request for Go object "+ refnum);
|
||||
return;
|
||||
}
|
||||
// Java objects are removed on request of Go.
|
||||
|
||||
Reference in New Issue
Block a user