[mob][photos] Remove logs added for debugging

This commit is contained in:
ashilkn 2024-05-03 19:17:48 +05:30
parent b221b80625
commit d911479031

View file

@ -277,7 +277,6 @@ Future<void> _scheduleHeartBeat(
isBackground ? kLastBGTaskHeartBeatTime : kLastFGTaskHeartBeatTime,
DateTime.now().microsecondsSinceEpoch,
);
_logger.info("Heartbeat scheduled for ${isBackground ? 'BG' : 'FG'} task");
Future.delayed(kHeartBeatFrequency, () async {
// ignore: unawaited_futures
_scheduleHeartBeat(prefs, isBackground);
@ -305,16 +304,11 @@ Future<void> _scheduleFGSync(String caller) async {
}
void _scheduleBGTaskKill(String taskId) async {
_logger.info("debugBGTask : Checking if BG task should be killed");
if (await _isRunningInForeground()) {
_logger.info("Found app in FG, committing seppuku. $taskId");
await _killBGTask(taskId);
return;
}
_logger.info(
"is running in foreground: ${await _isRunningInForeground()} *************",
);
_logger.info("debugBGTask : isNotRunningInForeground *************");
Future.delayed(kHeartBeatFrequency, () async {
_scheduleBGTaskKill(taskId);
});