mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[rust]: update flowy-log name
This commit is contained in:
parent
ba67652e29
commit
a06a2b9e5b
@ -3,7 +3,7 @@ members = [
|
|||||||
"lib-dispatch",
|
"lib-dispatch",
|
||||||
"flowy-sdk",
|
"flowy-sdk",
|
||||||
"dart-ffi",
|
"dart-ffi",
|
||||||
"flowy-log",
|
"lib-log",
|
||||||
"flowy-user",
|
"flowy-user",
|
||||||
"flowy-user-infra",
|
"flowy-user-infra",
|
||||||
"flowy-ast",
|
"flowy-ast",
|
||||||
|
@ -7,7 +7,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
lib-dispatch = { path = "../lib-dispatch" }
|
lib-dispatch = { path = "../lib-dispatch" }
|
||||||
flowy-log = { path = "../flowy-log" }
|
lib-log = { path = "../lib-log" }
|
||||||
flowy-user = { path = "../flowy-user" }
|
flowy-user = { path = "../flowy-user" }
|
||||||
lib-infra = { path = "../lib-infra" }
|
lib-infra = { path = "../lib-infra" }
|
||||||
flowy-workspace = { path = "../flowy-workspace", default-features = false }
|
flowy-workspace = { path = "../flowy-workspace", default-features = false }
|
||||||
@ -34,4 +34,4 @@ futures-util = "0.3.15"
|
|||||||
|
|
||||||
[features]
|
[features]
|
||||||
http_server = ["flowy-user/http_server", "flowy-workspace/http_server", "flowy-document/http_server"]
|
http_server = ["flowy-user/http_server", "flowy-workspace/http_server", "flowy-document/http_server"]
|
||||||
use_bunyan = ["flowy-log/use_bunyan"]
|
use_bunyan = ["lib-log/use_bunyan"]
|
@ -151,7 +151,7 @@ fn init_log(config: &FlowySDKConfig) {
|
|||||||
if !INIT_LOG.load(Ordering::SeqCst) {
|
if !INIT_LOG.load(Ordering::SeqCst) {
|
||||||
INIT_LOG.store(true, Ordering::SeqCst);
|
INIT_LOG.store(true, Ordering::SeqCst);
|
||||||
|
|
||||||
let _ = flowy_log::Builder::new("flowy-client", &config.root)
|
let _ = lib_log::Builder::new("flowy-client", &config.root)
|
||||||
.env_filter(&config.log_filter)
|
.env_filter(&config.log_filter)
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "flowy-log"
|
name = "lib-log"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user