[PR #6950] [MERGED] chore: diagnose sync issues with sync.log file #7656

Closed
opened 2026-03-23 23:20:37 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/6950
Author: @appflowy
Created: 12/9/2024
Status: Merged
Merged: 12/10/2024
Merged by: @appflowy

Base: mainHead: filter_collab_sync_log


📝 Commits (7)

  • 800d35e chore: filter sync log
  • 99898c5 chore: filter sync log
  • b8174f5 chore: enable/disable sync log
  • b7cfd26 chore: enable/disable sync log
  • 1015a48 Merge branch 'main' into filter_collab_sync_log
  • 9a81ee7 chore: observer document and folder
  • 85f0fd4 fix: integration test

📊 Changes

19 files changed (+252 additions, -49 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart (+4 -3)
📝 frontend/appflowy_flutter/lib/core/config/kv_keys.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/env/backend_env.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/env/cloud_env.dart (+21 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/appflowy_cloud_setting_bloc.dart (+18 -2)
📝 frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart (+3 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart (+43 -0)
📝 frontend/resources/translations/en.json (+3 -1)
📝 frontend/rust-lib/Cargo.lock (+28 -14)
📝 frontend/rust-lib/event-integration-test/src/user_event.rs (+1 -0)
📝 frontend/rust-lib/flowy-core/src/config.rs (+14 -2)
📝 frontend/rust-lib/flowy-document/src/document.rs (+13 -4)
📝 frontend/rust-lib/flowy-folder/src/manager.rs (+1 -1)
📝 frontend/rust-lib/flowy-folder/src/manager_observer.rs (+8 -1)
📝 frontend/rust-lib/flowy-server-pub/src/native/af_cloud_config.rs (+16 -0)
📝 frontend/rust-lib/lib-infra/src/util.rs (+10 -0)
📝 frontend/rust-lib/lib-log/Cargo.toml (+2 -2)
📝 frontend/rust-lib/lib-log/src/layer.rs (+29 -6)
📝 frontend/rust-lib/lib-log/src/lib.rs (+34 -12)

📄 Description

Using sync_trace! to write log to sync.log file.
In order to debug the syncing issue from the frontend side. We create a sync.log.xxxx when user enable sync logging in setting page.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/6950 **Author:** [@appflowy](https://github.com/appflowy) **Created:** 12/9/2024 **Status:** ✅ Merged **Merged:** 12/10/2024 **Merged by:** [@appflowy](https://github.com/appflowy) **Base:** `main` ← **Head:** `filter_collab_sync_log` --- ### 📝 Commits (7) - [`800d35e`](https://github.com/AppFlowy-IO/AppFlowy/commit/800d35e7104b9b9f266638c1aa113e724bec3840) chore: filter sync log - [`99898c5`](https://github.com/AppFlowy-IO/AppFlowy/commit/99898c547cce4a160429667cea38a0ab3f0b5a6e) chore: filter sync log - [`b8174f5`](https://github.com/AppFlowy-IO/AppFlowy/commit/b8174f5d19063c23750f17ac66c22dc1c245f7cd) chore: enable/disable sync log - [`b7cfd26`](https://github.com/AppFlowy-IO/AppFlowy/commit/b7cfd2626dd76e2467dd487d8c57d3ddce14fa0d) chore: enable/disable sync log - [`1015a48`](https://github.com/AppFlowy-IO/AppFlowy/commit/1015a489bae6ba22f2dde6d2193cb3b77731dec6) Merge branch 'main' into filter_collab_sync_log - [`9a81ee7`](https://github.com/AppFlowy-IO/AppFlowy/commit/9a81ee77594b0e8f7ac1142151f8dbbce82ff5bb) chore: observer document and folder - [`85f0fd4`](https://github.com/AppFlowy-IO/AppFlowy/commit/85f0fd4b5be1e2b1f72fc9837fdd9a9d79b9ddc0) fix: integration test ### 📊 Changes **19 files changed** (+252 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/cloud/cloud_runner.dart` (+4 -3) 📝 `frontend/appflowy_flutter/lib/core/config/kv_keys.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/env/backend_env.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/env/cloud_env.dart` (+21 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/appflowy_cloud_setting_bloc.dart` (+18 -2) 📝 `frontend/appflowy_flutter/lib/workspace/application/sidebar/space/space_bloc.dart` (+3 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart` (+43 -0) 📝 `frontend/resources/translations/en.json` (+3 -1) 📝 `frontend/rust-lib/Cargo.lock` (+28 -14) 📝 `frontend/rust-lib/event-integration-test/src/user_event.rs` (+1 -0) 📝 `frontend/rust-lib/flowy-core/src/config.rs` (+14 -2) 📝 `frontend/rust-lib/flowy-document/src/document.rs` (+13 -4) 📝 `frontend/rust-lib/flowy-folder/src/manager.rs` (+1 -1) 📝 `frontend/rust-lib/flowy-folder/src/manager_observer.rs` (+8 -1) 📝 `frontend/rust-lib/flowy-server-pub/src/native/af_cloud_config.rs` (+16 -0) 📝 `frontend/rust-lib/lib-infra/src/util.rs` (+10 -0) 📝 `frontend/rust-lib/lib-log/Cargo.toml` (+2 -2) 📝 `frontend/rust-lib/lib-log/src/layer.rs` (+29 -6) 📝 `frontend/rust-lib/lib-log/src/lib.rs` (+34 -12) </details> ### 📄 Description Using `sync_trace!` to write log to sync.log file. In order to debug the syncing issue from the frontend side. We create a `sync.log.xxxx` when user `enable sync logging `in setting page. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:20:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#7656
No description provided.