commit e06f01e63861cfffca5d924fc3f95873a6f7e881 parent 3667bfea8164c0d2db088b7b6f3d8db38b1a6e62 Author: Florian Dold <florian@dold.me> Date: Thu, 9 Oct 2025 21:49:35 +0200 more logging to help diagnose wallet-core resume issue on iOS Diffstat:
| M | packages/taler-wallet-core/src/shepherd.ts | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/shepherd.ts b/packages/taler-wallet-core/src/shepherd.ts @@ -210,7 +210,9 @@ export class TaskSchedulerImpl implements TaskScheduler { } this.isRunning = true; try { + logger.info(`loading shepherd tasks from database`); await this.loadTasksFromDb(); + logger.info(`done loading shepherd tasks from database`); } catch (e) { this.isRunning = false; throw e; @@ -273,9 +275,10 @@ export class TaskSchedulerImpl implements TaskScheduler { * Mostly useful to interrupt all waits when time-travelling. */ async reload(): Promise<void> { + logger.info("reloading all shepherd tasks"); await this.ensureRunning(); const tasksIds = [...this.sheps.keys()]; - logger.info(`reloading shepherd with ${tasksIds.length} tasks`); + logger.info(`reloading shepherd with ${tasksIds.length} existing tasks`); for (const taskId of tasksIds) { this.stopShepherdTask(taskId); this.sheps.delete(taskId);