Python logging #7

Merged
akinwale merged 5 commits from python-logging into master 2017-08-18 00:06:58 +02:00
Showing only changes of commit 2f1a65381d - Show all commits

View file

@ -29,16 +29,6 @@ public class LbrynetService extends PythonService {
public static String TAG = "LbrynetService"; public static String TAG = "LbrynetService";
@Override
public int startType() {
return START_STICKY;
}
@Override
public boolean canDisplayNotification() {
return false;
}
@Override @Override
public int onStartCommand(Intent intent, int flags, int startId) { public int onStartCommand(Intent intent, int flags, int startId) {
// Extract files // Extract files
@ -52,12 +42,22 @@ public class LbrynetService extends PythonService {
return super.onStartCommand(intent, flags, startId); return super.onStartCommand(intent, flags, startId);
} }
public String getAppRoot() { @Override
public boolean canDisplayNotification() {
return false;
}
@Override
public int startType() {
return START_STICKY;
}
private String getAppRoot() {
String app_root = getApplicationContext().getFilesDir().getAbsolutePath() + "/app"; String app_root = getApplicationContext().getFilesDir().getAbsolutePath() + "/app";
return app_root; return app_root;
} }
public void recursiveDelete(File f) { private void recursiveDelete(File f) {
if (f.isDirectory()) { if (f.isDirectory()) {
for (File r : f.listFiles()) { for (File r : f.listFiles()) {
recursiveDelete(r); recursiveDelete(r);
@ -66,7 +66,7 @@ public class LbrynetService extends PythonService {
f.delete(); f.delete();
} }
public void unpackData(final String resource, File target) { private void unpackData(final String resource, File target) {
Log.v(TAG, "UNPACKING!!! " + resource + " " + target.getName()); Log.v(TAG, "UNPACKING!!! " + resource + " " + target.getName());
// The version of data in memory and on disk. // The version of data in memory and on disk.