File: 2001_file-per-thread-logger.patch

package info (click to toggle)
rust-wasmtime 26.0.1%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,656 kB
  • sloc: ansic: 4,003; sh: 561; javascript: 542; cpp: 254; asm: 175; ml: 96; makefile: 55
file content (79 lines) | stat: -rw-r--r-- 2,963 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Description: avoid not-in-Debian crate file-per-thread-logger
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-10-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -319,7 +319,6 @@
 tempfile = "3.1.0"
 filecheck = "0.5.0"
 libc = { version = "0.2.112", default-features = true }
-file-per-thread-logger = "0.2.0"
 tokio = { version = "1.30.0", features = [ "rt", "time" ] }
 hyper = "1.0.1"
 http = "1.0.0"
@@ -377,7 +376,6 @@
   "parallel-compilation",
   "pooling-allocator",
   "cache",
-  "logging",
   "demangle",
   "cranelift",
   "profiling",
@@ -429,7 +427,6 @@
 wat = ["dep:wat", "wasmtime/wat"]
 cache = ["dep:wasmtime-cache", "wasmtime-cli-flags/cache"]
 parallel-compilation = ["wasmtime-cli-flags/parallel-compilation"]
-logging = ["wasmtime-cli-flags/logging"]
 demangle = ["wasmtime/demangle"]
 cranelift = ["wasmtime-cli-flags/cranelift", "dep:wasmtime-cranelift"]
 profiling = ["wasmtime/profiling", "wasmtime/call-hook"]
--- a/crates/cli-flags/Cargo.toml
+++ b/crates/cli-flags/Cargo.toml
@@ -15,8 +15,6 @@
 [dependencies]
 anyhow = { workspace = true, features = ['std'] }
 clap = { workspace = true }
-file-per-thread-logger = { workspace = true, optional = true }
-tracing-subscriber = { workspace = true, optional = true }
 rayon = { version = "1.5.0", optional = true }
 wasmtime = { workspace = true, features = ["gc"] }
 humantime = { workspace = true }
@@ -27,7 +25,6 @@
 component-model = ["wasmtime/component-model"]
 cache = ["wasmtime/cache"]
 parallel-compilation = ["wasmtime/parallel-compilation", "dep:rayon"]
-logging = ["dep:file-per-thread-logger", "dep:tracing-subscriber"]
 cranelift = ["wasmtime/cranelift"]
 coredump = ["wasmtime/coredump"]
 gc = ["wasmtime/gc"]
--- a/cranelift/filetests/Cargo.toml
+++ b/cranelift/filetests/Cargo.toml
@@ -22,7 +22,6 @@
 cranelift-jit = { workspace = true, features = ["selinux-fix"] }
 cranelift-module = { workspace = true }
 cranelift-control = { workspace = true }
-file-per-thread-logger = { workspace = true }
 filecheck = { workspace = true }
 gimli = { workspace = true, features = ['std'] }
 log = { workspace = true }
--- a/cranelift/filetests/src/concurrent.rs
+++ b/cranelift/filetests/src/concurrent.rs
@@ -117,7 +117,6 @@
     thread::Builder::new()
         .name("heartbeat".to_string())
         .spawn(move || {
-            file_per_thread_logger::initialize(LOG_FILENAME_PREFIX);
             while replies.send(Reply::Tick).is_ok() {
                 thread::sleep(Duration::from_secs(1));
             }
@@ -134,7 +133,6 @@
     thread::Builder::new()
         .name(format!("worker #{thread_num}"))
         .spawn(move || {
-            file_per_thread_logger::initialize(LOG_FILENAME_PREFIX);
             loop {
                 // Lock the mutex only long enough to extract a request.
                 let Request(jobid, path) = match requests.lock().unwrap().recv() {