mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 03:11:30 +00:00
Removed unused variable, use static variable to hold log tag.
This commit is contained in:
parent
3719be19c0
commit
96dd7bf809
1 changed files with 3 additions and 8 deletions
|
@ -45,6 +45,8 @@ public class SyncthingService extends Service {
|
|||
|
||||
private static final String TAG = "SyncthingService";
|
||||
|
||||
private static final String TAG_NATIVE = "SyncthingNativeCode";
|
||||
|
||||
private static final int NOTIFICATION_RUNNING = 1;
|
||||
|
||||
/**
|
||||
|
@ -85,10 +87,6 @@ public class SyncthingService extends Service {
|
|||
|
||||
private RestApi mApi;
|
||||
|
||||
private final ReentrantLock mNativeLogLock = new ReentrantLock();
|
||||
|
||||
private String mNativeLog = "";
|
||||
|
||||
private final SyncthingServiceBinder mBinder = new SyncthingServiceBinder(this);
|
||||
|
||||
/**
|
||||
|
@ -209,10 +207,7 @@ public class SyncthingService extends Service {
|
|||
String line;
|
||||
try {
|
||||
while ((line = br.readLine()) != null) {
|
||||
mNativeLogLock.lock();
|
||||
Log.i("SyncthingNativeCode", line);
|
||||
mNativeLog += line + "\n";
|
||||
mNativeLogLock.unlock();
|
||||
Log.i(TAG_NATIVE, line);
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
|
Loading…
Reference in a new issue