feat: adding suffix for user data folder when current cloud type is appflowy cloud (#3918)

* fix: load database fail caused by spawning long run task

* chore: yield long run task

* chore: fmt

* chore: update client api

* feat: copy data between server

* ci: fix af cloud test
This commit is contained in:
Nathan.fooo
2023-11-12 18:00:07 +08:00
committed by GitHub
parent 3c7e636b65
commit 7eb20b232a
51 changed files with 559 additions and 386 deletions

View File

@ -25,13 +25,10 @@ pub struct Builder {
impl Builder {
pub fn new(name: &str, directory: &str) -> Self {
// let directory = directory.as_ref().to_str().unwrap().to_owned();
let local_file_name = format!("{}.log", name);
Builder {
name: name.to_owned(),
env_filter: "Info".to_owned(),
file_appender: tracing_appender::rolling::daily(directory, local_file_name),
file_appender: tracing_appender::rolling::daily(directory, format!("{}", name)),
}
}