File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/desktop/src-tauri/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ pub async fn upload_log_file(app: &AppHandle) -> Result<(), String> {
3636 fs:: metadata ( & log_file) . map_err ( |e| format ! ( "Failed to read log file metadata: {}" , e) ) ?;
3737 let file_size = metadata. len ( ) ;
3838
39- const MAX_SIZE : u64 = 9 * 1024 * 1024 ;
39+ const MAX_SIZE : u64 = 1 * 1024 * 1024 ;
4040
4141 let log_content = if file_size > MAX_SIZE {
4242 let content =
4343 fs:: read_to_string ( & log_file) . map_err ( |e| format ! ( "Failed to read log file: {}" , e) ) ?;
4444
4545 let header = format ! (
46- "⚠️ Log file truncated (original size: {} bytes, showing last ~9MB )\n \n " ,
46+ "⚠️ Log file truncated (original size: {} bytes, showing last ~1MB )\n \n " ,
4747 file_size
4848 ) ;
4949 let max_content_size = ( MAX_SIZE as usize ) - header. len ( ) ;
You can’t perform that action at this time.
0 commit comments