mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: config flowy-sync crate log level
This commit is contained in:
parent
953af35029
commit
0ba0bb62ce
1
frontend/rust-lib/Cargo.lock
generated
1
frontend/rust-lib/Cargo.lock
generated
@ -975,6 +975,7 @@ dependencies = [
|
|||||||
"protobuf",
|
"protobuf",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
"serde_repr",
|
||||||
"strum",
|
"strum",
|
||||||
"strum_macros",
|
"strum_macros",
|
||||||
"uuid",
|
"uuid",
|
||||||
|
@ -74,12 +74,11 @@ fn crate_log_filter(level: String) -> String {
|
|||||||
filters.push(format!("lib_ot={}", level));
|
filters.push(format!("lib_ot={}", level));
|
||||||
filters.push(format!("lib_ws={}", level));
|
filters.push(format!("lib_ws={}", level));
|
||||||
filters.push(format!("lib_infra={}", level));
|
filters.push(format!("lib_infra={}", level));
|
||||||
|
filters.push(format!("flowy_sync={}", level));
|
||||||
|
|
||||||
filters.push(format!("dart_ffi={}", "info"));
|
filters.push(format!("dart_ffi={}", "info"));
|
||||||
filters.push(format!("flowy_database={}", "info"));
|
filters.push(format!("flowy_database={}", "info"));
|
||||||
filters.push(format!("flowy_net={}", "info"));
|
filters.push(format!("flowy_net={}", "info"));
|
||||||
filters.push(format!("flowy_sync={}", "info"));
|
|
||||||
|
|
||||||
filters.join(",")
|
filters.join(",")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
shared-lib/Cargo.lock
generated
1
shared-lib/Cargo.lock
generated
@ -462,6 +462,7 @@ dependencies = [
|
|||||||
"protobuf",
|
"protobuf",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
"serde_repr",
|
||||||
"strum",
|
"strum",
|
||||||
"strum_macros",
|
"strum_macros",
|
||||||
"uuid",
|
"uuid",
|
||||||
|
@ -13,6 +13,7 @@ strum = "0.21"
|
|||||||
strum_macros = "0.21"
|
strum_macros = "0.21"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = {version = "1.0"}
|
serde_json = {version = "1.0"}
|
||||||
|
serde_repr = "0.1"
|
||||||
uuid = { version = "0.8", features = ["serde", "v4"] }
|
uuid = { version = "0.8", features = ["serde", "v4"] }
|
||||||
flowy-error-code = { path = "../flowy-error-code"}
|
flowy-error-code = { path = "../flowy-error-code"}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ use bytes::Bytes;
|
|||||||
use flowy_derive::{ProtoBuf, ProtoBuf_Enum};
|
use flowy_derive::{ProtoBuf, ProtoBuf_Enum};
|
||||||
use flowy_error_code::ErrorCode;
|
use flowy_error_code::ErrorCode;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
use serde_repr::*;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use strum_macros::{Display, EnumCount as EnumCountMacro, EnumIter, EnumString};
|
use strum_macros::{Display, EnumCount as EnumCountMacro, EnumIter, EnumString};
|
||||||
|
|
||||||
@ -224,7 +225,17 @@ impl TryInto<FieldChangesetParams> for FieldChangesetPayload {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(
|
||||||
Debug, Clone, PartialEq, Eq, ProtoBuf_Enum, EnumCountMacro, EnumString, EnumIter, Display, Serialize, Deserialize,
|
Debug,
|
||||||
|
Clone,
|
||||||
|
PartialEq,
|
||||||
|
Eq,
|
||||||
|
ProtoBuf_Enum,
|
||||||
|
EnumCountMacro,
|
||||||
|
EnumString,
|
||||||
|
EnumIter,
|
||||||
|
Display,
|
||||||
|
Serialize_repr,
|
||||||
|
Deserialize_repr,
|
||||||
)]
|
)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum FieldType {
|
pub enum FieldType {
|
||||||
|
@ -156,6 +156,7 @@ impl GridBlockMetaPad {
|
|||||||
match cal_diff::<PlainTextAttributes>(old, new) {
|
match cal_diff::<PlainTextAttributes>(old, new) {
|
||||||
None => Ok(None),
|
None => Ok(None),
|
||||||
Some(delta) => {
|
Some(delta) => {
|
||||||
|
tracing::trace!("[GridBlockMeta] Composing change {}", delta.to_delta_str());
|
||||||
self.delta = self.delta.compose(&delta)?;
|
self.delta = self.delta.compose(&delta)?;
|
||||||
Ok(Some(GridBlockMetaChange { delta, md5: self.md5() }))
|
Ok(Some(GridBlockMetaChange { delta, md5: self.md5() }))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user