Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bd0081e authored by Brian Julian's avatar Brian Julian
Browse files

Log IOException message when AltitudeService fails.

Test: Logging only
Flag: EXEMPT bugfix
Bug: 348205838
Change-Id: Ie0ba6a0fb250e102c7c94b1f07890262bec114c6
parent 2e2b72f8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.frameworks.location.altitude.IAltitudeService;
import android.location.Location;
import android.location.altitude.AltitudeConverter;
import android.os.RemoteException;
import android.util.Log;

import com.android.server.SystemService;

@@ -38,6 +39,8 @@ import java.io.IOException;
 */
public class AltitudeService extends IAltitudeService.Stub {

    private static final String TAG = "AltitudeService";

    private final AltitudeConverter mAltitudeConverter = new AltitudeConverter();
    private final Context mContext;

@@ -59,6 +62,7 @@ public class AltitudeService extends IAltitudeService.Stub {
        try {
            mAltitudeConverter.addMslAltitudeToLocation(mContext, location);
        } catch (IOException e) {
            Log.e(TAG, "", e);
            response.success = false;
            return response;
        }
@@ -74,6 +78,7 @@ public class AltitudeService extends IAltitudeService.Stub {
        try {
            return mAltitudeConverter.getGeoidHeight(mContext, request);
        } catch (IOException e) {
            Log.e(TAG, "", e);
            GetGeoidHeightResponse response = new GetGeoidHeightResponse();
            response.success = false;
            return response;