mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 18:15:09 +00:00 
			
		
		
		
	 b64da2c02f
			
		
	
	
		b64da2c02f
		
			
		
	
	
	
	
		
			
			* chore: rename service * refactor: upload * chore: save upload meta data * chore: add sql test * chore: uploader * chore: fix upload * chore: cache file and remove after finish * chore: retry upload * chore: pause when netowork unreachable * chore: add event test * chore: add test * chore: clippy * chore: update client-api commit id * chore: fix flutter test
		
			
				
	
	
		
			25 lines
		
	
	
		
			614 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			614 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::sync::Once;
 | |
| 
 | |
| use tracing_subscriber::fmt::Subscriber;
 | |
| use tracing_subscriber::util::SubscriberInitExt;
 | |
| use tracing_subscriber::EnvFilter;
 | |
| 
 | |
| mod af_cloud_test;
 | |
| // mod supabase_test;
 | |
| 
 | |
| pub fn setup_log() {
 | |
|   static START: Once = Once::new();
 | |
|   START.call_once(|| {
 | |
|     let level = "trace";
 | |
|     let mut filters = vec![];
 | |
|     filters.push(format!("flowy_server={}", level));
 | |
|     std::env::set_var("RUST_LOG", filters.join(","));
 | |
| 
 | |
|     let subscriber = Subscriber::builder()
 | |
|       .with_env_filter(EnvFilter::from_default_env())
 | |
|       .with_ansi(true)
 | |
|       .finish();
 | |
|     subscriber.try_init().unwrap();
 | |
|   });
 | |
| }
 |