removed debug logging from service

This commit is contained in:
y20k 2020-03-13 13:34:37 +01:00
parent 619083016e
commit 3324f859b7
No known key found for this signature in database
GPG key ID: 824D4259F41FAFF6

View file

@ -132,7 +132,6 @@ class TrackerService(): Service(), CoroutineScope, SensorEventListener {
/* Overrides onBind from Service */ /* Overrides onBind from Service */
override fun onBind(p0: Intent?): IBinder? { override fun onBind(p0: Intent?): IBinder? {
LogHelper.e(TAG, "onBind called.") // todo remove
bound = true bound = true
// start receiving location updates // start receiving location updates
addGpsLocationListener() addGpsLocationListener()
@ -144,7 +143,6 @@ class TrackerService(): Service(), CoroutineScope, SensorEventListener {
/* Overrides onRebind from Service */ /* Overrides onRebind from Service */
override fun onRebind(intent: Intent?) { override fun onRebind(intent: Intent?) {
LogHelper.e(TAG, "onRebind called.") // todo remove
bound = true bound = true
// start receiving location updates // start receiving location updates
addGpsLocationListener() addGpsLocationListener()
@ -154,7 +152,6 @@ class TrackerService(): Service(), CoroutineScope, SensorEventListener {
/* Overrides onUnbind from Service */ /* Overrides onUnbind from Service */
override fun onUnbind(intent: Intent?): Boolean { override fun onUnbind(intent: Intent?): Boolean {
LogHelper.e(TAG, "onUnbind called.") // todo remove
bound = false bound = false
// stop receiving location updates - if not tracking // stop receiving location updates - if not tracking
if (trackingState != Keys.STATE_TRACKING_ACTIVE) { if (trackingState != Keys.STATE_TRACKING_ACTIVE) {
@ -165,6 +162,7 @@ class TrackerService(): Service(), CoroutineScope, SensorEventListener {
return true return true
} }
/* Overrides onDestroy from Service */ /* Overrides onDestroy from Service */
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
@ -218,7 +216,6 @@ class TrackerService(): Service(), CoroutineScope, SensorEventListener {
resumed = true resumed = true
// calculate length of recording break // calculate length of recording break
track.recordingPaused = TrackHelper.calculateRecordingPaused(track.recordingStop) track.recordingPaused = TrackHelper.calculateRecordingPaused(track.recordingStop)
LogHelper.e(TAG, "We took a break for ${DateTimeHelper.convertToReadableTime(this, track.recordingPaused)}") // todo remove
// start tracking // start tracking
startTracking(newTrack = false) startTracking(newTrack = false)
} }