File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
android/src/main/kotlin/com/icapps/background_location_tracker/service Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import com.icapps.background_location_tracker.utils.ActivityCounter
23
23
import com.icapps.background_location_tracker.utils.Logger
24
24
import com.icapps.background_location_tracker.utils.NotificationUtil
25
25
import com.icapps.background_location_tracker.utils.SharedPrefsUtil
26
+ import java.io.PrintWriter
27
+ import java.io.StringWriter
26
28
27
29
private const val timeOut = 24 * 60 * 60 * 1000L /* 24 hours max */
28
30
@@ -143,7 +145,10 @@ internal class LocationUpdatesService : Service() {
143
145
NotificationUtil .startForeground(this , location)
144
146
}
145
147
} catch (e: Throwable ) {
146
- Logger .error(e.message ? : " " ," onUnbind failed to execute" );
148
+ val sw = StringWriter ()
149
+ val pw = PrintWriter (sw)
150
+ e.printStackTrace(pw)
151
+ Logger .error(sw.toString()," onUnbind failed to execute" );
147
152
}
148
153
149
154
return true // Ensures onRebind() is called when a client re-binds.
You can’t perform that action at this time.
0 commit comments