1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01:00

fix e.printStackTrace() by logging instead

This commit is contained in:
cpfeiffer 2016-09-25 23:05:27 +02:00
parent 3259efbd10
commit 0341c7f61f

View File

@ -120,7 +120,7 @@ public class DiscoveryActivity extends GBActivity implements AdapterView.OnItemC
//logMessageContent(result.getScanRecord().getBytes()); //logMessageContent(result.getScanRecord().getBytes());
handleDeviceFound(result.getDevice(), (short) result.getRssi()); handleDeviceFound(result.getDevice(), (short) result.getRssi());
} catch (NullPointerException e) { } catch (NullPointerException e) {
e.printStackTrace(); LOG.warn("Error handling scan result", e);
} }
} }
}; };