[ADD] log

This commit is contained in:
Sem van der Hoeven
2020-12-17 10:04:43 +01:00
parent 3f132f48a7
commit db7d944a41
2 changed files with 5 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ public abstract class Database extends RoomDatabase {
super.onCreate(db);
databaseWriterExecutor.execute(() -> {
// TODO populate our database here
});

View File

@@ -1,5 +1,7 @@
package com.a1.nextlocation.network;
import android.util.Log;
import com.a1.nextlocation.data.Location;
import com.a1.nextlocation.data.Route;
@@ -42,11 +44,11 @@ public enum ApiHandler {
try (Response response = client.newCall(request).execute()) {
if (response.body() != null) {
String responseString = Objects.requireNonNull(response.body()).string();
Log.d(TAG, "getDirections: got response: " + responseString);
}
} catch (IOException e) {
Log.d(TAG, "getDirections: caught exception: " + e.getLocalizedMessage());
}
});