REQ-3502: 添加日志

This commit is contained in:
yanglin 2025-01-16 12:45:44 +08:00
parent b5ff85d6d3
commit 33dc7dfa93

View File

@ -216,6 +216,7 @@ public class TodoSyncCardService {
todoManager.firePresetButtonPressed(request, false);
todoLogger.logTodoUpdated(ctx, todo);
} catch (Exception e) {
log.warn("[syncCardPresetButtonPressed] onCardPresetButtonPressed: error, message={}", message, e);
todoLogger.logTodoUpdated(ctx.copy().addLogContent("exception", e), todo);
}
}
@ -252,6 +253,7 @@ public class TodoSyncCardService {
cardManager.firePresetButtonPressed(request);
todoLogger.logTodoUpdated(ctx, todo);
} catch (Exception e) {
log.warn("[syncTodoPresetButtonPressed] error, message={}", message, e);
todoLogger.logTodoUpdated(ctx.copy().addLogContent("exception", e), todo);
}
}